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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Themes /

Discuss SilverStripe Themes.

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

Section/Current CSS menue styles


Go to End


2426 Views

Avatar
Willr

Forum Moderator, 5523 Posts

18 January 2010 at 9:16am

$LinkOrSection will return 'link' for a general page or 'section' if you're on the current page or a child page. If you could adapt your css to use those class names that would be the best way.

<a href="$Link" class="$LinkOrSection">...