silverstripe-simple/templates/Includes/SidebarMenu.ss
Simon Welsh d3f9781866 Updates templates to more SS3-ready syntax
- Use $Name in if/loop
- Replace instances of control with loop
2012-10-27 16:15:51 +13:00

19 lines
403 B
Scheme

<%--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">&rarr;</span>
<span class="text">$MenuTitle.XML</span>
</a>
<% if $Children %>
<ul>
<% include SidebarMenu %>
</ul>
<% end_if %>
</li>
<% end_loop %>
<% end_if %>