Jump to:

23378 Posts in 18298 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Sidebar Question

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: 657 Views
  • TerryMiddleton
    Avatar
    Community Member
    108 Posts

    Sidebar Question Link to this post

    When I click on a menu item on the sidebar, I need be able to set the link to a different color/bold it.

    I would normally do this with CSS using the a:selected tag and setting the font-weight:bold

    I'm not able to do this because with SS a new page is loaded and the link selected is no longer available.

    How can I know which page is selected so I can affect the link using CSS.

    Terry

  • Jardiamj
    Avatar
    Community Member
    17 Posts

    Re: Sidebar Question Link to this post

    Hello Terry!
    I think this is what you need:

    http://doc.silverstripe.com/doku.php?id=tutorial:1-building-a-basic-site#highlighting_the_current_page

    Have a good day. Cheers!

  • TerryMiddleton
    Avatar
    Community Member
    108 Posts

    Re: Sidebar Question Link to this post

    You did it! Thank you! I have been pulling my hair wondering how I was going to be able to solve this. I've looked at that tutorial 100 times and didn't get it.

    Finally for some reason when you sent me the link, I got it and was able (very quickly) implement what I needed to do.

    Thanks a million,

    Terry

    657 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.