1374 Posts in 487 Topics by 520 members
|Go to End|
17 January 2010 at 11:36pm
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?
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">...
18 January 2010 at 11:42am
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.
18 January 2010 at 6:22pm
<a href="$Link" title="$Title.XML" class="$LinkOrSection <% if Children %>ChildrenClass<% end_if %>">
Works now. Thanks
|Go to Top|