Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

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

Sidebar Question


Reply

3 Posts   675 Views

Avatar
TerryMiddleton

30 April 2009 at 4:26am Community Member, 108 Posts

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

Avatar
Jardiamj

30 April 2009 at 9:31am Community Member, 17 Posts

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!

Avatar
TerryMiddleton

30 April 2009 at 3:31pm Community Member, 108 Posts

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