Jump to:

23376 Posts in 18286 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Editable sidebar - the name of the bar

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 742 Views
  • Maariak
    Avatar
    Community Member
    20 Posts

    Editable sidebar - the name of the bar Link to this post

    I made a sidebar with this introduction http://archive.ssbits.com/create-a-static-sidebar/?commentStart=20, and I got the bar I can edit with cms. I've tried to search the files, but I can't find where can I edit the NAME of the sidebar, because now I have bar with the name "static sidebar" above.. In which file does it stand, where can I change it?

    There's also introduction how to put e.g. External Link to the sidebar, what I don't need. So I'm removing those lines from the codes, but I'm seem to miss some of them, because it's still saying "External link" in my sidebar.

  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: Editable sidebar - the name of the bar Link to this post

    If you followed the tutorial, you must have created a StaticSidebar.ss. Most of the things you see in your sidebar stem from there. Look for:

    <h3>Static Sidebar</h3>

    and don't forget to ?flush=1

  • Invader_Zim
    Avatar
    Community Member
    141 Posts

    Re: Editable sidebar - the name of the bar Link to this post

    Hi Mariaak,

    Your first question: the name of this sidebar is in the template (themes/blackcandy/templates/Includes/StaticSidebar.ss ), wrapped in h3 tags.

    <h3>Static Sidebar</h3>

    Your second question: check the template again

    Cheers
    Christian

    Edit: ahhh, too slow...

  • Maariak
    Avatar
    Community Member
    20 Posts

    Re: Editable sidebar - the name of the bar Link to this post

    I already changed that <h3>Static Sidebar</h3> -part (which I assumed to be the right place, but was confuced when it didn't change anything), but can you explain what does that ?flush=1 means ?

    And yes, I'll check the template again... and if don't find, I'll do it again.. Maybe I'll find the missing part (or the part that's left)

  • Maariak
    Avatar
    Community Member
    20 Posts

    Re: Editable sidebar - the name of the bar Link to this post

    Got it (the first problem), thanks! (And still looking for the "external" part)

  • Invader_Zim
    Avatar
    Community Member
    141 Posts

    Re: Editable sidebar - the name of the bar Link to this post

    The ?flush=1 means to flush the site's cache.
    Taken from the docs: "Whenever we edit a template file, we need to append ?flush=1 onto the end of the URL, e.g. http://localhost/home/?flush=1. SilverStripe stores template files in a cache for quicker load times. Whenever there are changes to the template, we must flush the cache in order for the changes to take effect"

    Here is the link: http://doc.silverstripe.org/sapphire/en/tutorials/1-building-a-basic-site

    742 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.