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:

General Questions /

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

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

navigation class


Go to End


9 Posts   2081 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