silverstripe-simple/templates/Includes/SidebarMenu.ss

21 lines
464 B
Scheme
Raw Normal View History

<%--Include SidebarMenu recursively --%>
<% if LinkOrSection = section %>
<% 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 %>
<% end_if %>