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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Template Questions /

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

side bar for 3rd level menu


Go to End


1707 Views

Avatar
kheeteck

Community Member, 7 Posts

7 July 2009 at 1:49pm

Hi Everyone,

I have a side bar for 3rd level menu. Each time i click the second level menu, the side bar comes out, but it always highlight one of the items in the sidebar. How do i change that so that it won't highlight any items until i click it.

I also notice that each time my side bar menu items is highlighted, the $LinkingMode changes to 'current' style class in the actual html code.
And when the menu items is not highlighted the style class is "link"

So what i want to achieve is , initially when i click on any second level menu item and the side bar menu comes out, all items in the side bar menu should not be highlighted.

Here is my code

<% if Menu(2) %>
<div id="sidelink" class="typography">
<% control Menu(2) %>
<% if LinkOrSection = section %>
<% if Children %>
<% control Children %>
<a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode"><span><em>$MenuTitle.XML</em></span></a>
<% end_control %>
<% end_if %>
<% end_if %>
<% end_control %>
</div>
<% end_if %>