I'm testing out SilverStripe 3.0.3, and I find the side behaving strange. I see that the code has changed in the simple template from using <% loop menu(2) %> to using <% loop $Children %>
Anyway, the result is that I get all children of every page showing up on everypage with children. Is there any bugs in the built in template controls? I mean loop children should normally only loop through the children of the specific page?
This is the new SidebarMenu simple template code:
<%--Include SidebarMenu recursively --%>
<% if $Children %>
<% loop $Children %>
<li class="$LinkingMode">
<a href="$Link" class="$LinkingMode" title="Go to the $Title.XML page">
<span class="arrow">→</span>
<span class="text">$MenuTitle.XML</span>
</a>
<% if $Children %>
<ul>
<% include SidebarMenu %>
</ul>
<% end_if %>
</li>
<% end_loop %>
<% end_if %>