mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
0df804f86c
Default setting: separate submenu, no recursion. Setting recursion fetches all children, to allow for JavaScript-powered submenus (script not included). If recursion is enabled, separate menus are disabled.
15 lines
358 B
Scheme
15 lines
358 B
Scheme
<ul id="submenu">
|
|
<% control Children %>
|
|
<li><a href="$Link" class="$LinkingMode">
|
|
$Title <% if IsFolder %><span class="is-folder">►</span><% end_if %>
|
|
</a>
|
|
<% if Children %>
|
|
<ul>
|
|
<% control Children %>
|
|
<li><a href="$Link" class="$LinkingMode">$Title</a></li>
|
|
<% end_control %>
|
|
</ul><% end_if %>
|
|
</li>
|
|
<% end_control %>
|
|
</ul>
|