I have the following code in my navigation to add a class to my current page:
<li <% if LinkOrSection = section %>class="current"<% end_if %>><a href="$Link" >$MenuTitle</a>
How would I add an alternate class onto this if within a certain link or section? for example:
<li <% if LinkOrSection = whats-new %>class="hidden"<% end_if %>><a href="$Link" >$MenuTitle</a>
How would I add these together?
My full navigation code is:
<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 %>
<% if URLSegment != work-with-us %>
<ul>
<% control Children %>
<li class="$LinkingMode"><a href="$Link" >$MenuTitle</a></li>
<% end_control %>
</ul>
<% end_if %>
<% end_if %>
<% end_if %>
</li>
<% end_control %>
</ul>