Hey Everyone. I am trying to use the 'section' css style for buttons that are selected and have children. For all other buttons that are selected I want them to use the 'current' css style. Can anyone help me?
$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">...
I have attached 2 examples and how i want them to look.
The one with Welcome selected has no children and therefor looks different to when International Exchanges is selected in example 2. International Exchanges has children and therefor has a different BG image which has a matching grey colour behind the button so that it looks like the bg of children goes up and behind the parent button image. Hope you get what im meaning.
Help would be greatly appreciated.
<a href="$Link" title="$Title.XML" class="$LinkOrSection <% if Children %>ChildrenClass<% end_if %>">
Works now. Thanks