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.

General Questions /

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

navigation class


Go to End
Reply


9 Posts   1487 Views

Avatar
mhull

Community Member, 79 Posts

20 July 2009 at 11:21pm

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>

Go to Top