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   699 Views

Avatar
TerryMiddleton

Community Member, 108 Posts

30 April 2009 at 4:26am

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

Community Member, 17 Posts

30 April 2009 at 9:31am

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

Community Member, 108 Posts

30 April 2009 at 3:31pm

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