Jump to:

23355 Posts in 17744 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » navigation class

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1 2
Go to End
Author Topic: 1368 Views
  • mhull
    Avatar
    Community Member
    79 Posts

    Re: navigation class Link to this post

    So this should be:

    <ul id="topmenu" class="sf-menu sf-navbar">
    <% control Menu(1) %>

    <li <% if LinkOrSection = section %>class="current"<% end_if %>><a href="$Link" >$MenuTitle</a>

    <% if Children %>

    <% if URLSegment = whats-new %>
    <ul>
    <% control Children %>
    <li class="hidden"><a href="$Link" >$MenuTitle</a></li>
    <% end_control %>
    </ul>

    <% else_if URLSegment = work-with-us %>
    <ul>
    <% control Children %>
    <li class="hidden"><a href="$Link" >$MenuTitle</a></li>
    <% end_control %>
    </ul>

    <% else %>

    <ul>
    <% control Children %>
    <li class="$LinkingMode"><a href="$Link" >$MenuTitle</a></li>

    <% end_control %>
    </ul>
    <% end_if %>
    <% end_if %>

    </li>
    <% end_control %>
    </ul>

    1368 Views
Page: 1 2
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.