Hey, i'm posting some code from my SideBar.ss.
I'm using <% if InSection(news) %>to not display children of news in my level(2) menu. Works so far, but i'm wondering why these childs are displayed when one of them are the current page (level3).
I just want none of the childs of news to display in my level 2 menu. Any help?
SideBar.ss
<% control Menu(2) %>
<% if LinkOrSection = section %>
<li class="current">
<% if InSection(news) %>
<a class="current" href="$Link">$MenuTitle</a>
<% else %>
<% if Children %>
<a class="children" href="$Link">$MenuTitle</a>
<ul class="navlist2">
<% control Children %>
<% if LinkOrSection = section %>
<li><a class="current" href="$Link">$MenuTitle</a></li>
<% else %>
<li><a href="$Link">$MenuTitle</a></li>
<% end_if %>
<% end_control %>
</ul>
<% else %>
<a class="current" href="$Link">$MenuTitle</a>
<% end_if %>
<% end_if %>
</li>
<% else %>
<li><a href="$Link">$MenuTitle</a></li>
<% end_if %>
<% end_control %>