Jump to:

3431 Posts in 1025 Topics by 864 members

Template Questions

SilverStripe Forums » Template Questions » side bar for 3rd level menu

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

Page: 1
Go to End
Author Topic: 1208 Views
  • kheeteck
    Avatar
    Community Member
    7 Posts

    side bar for 3rd level menu Link to this post

    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 %>

    1208 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.