mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
Support one more layer in the template.
This commit is contained in:
parent
6edaebab41
commit
d452a047fa
@ -11,24 +11,44 @@
|
|||||||
<li class="$LinkingMode <% if Last %>last<% end_if %>">
|
<li class="$LinkingMode <% if Last %>last<% end_if %>">
|
||||||
<a href="$Link" class="top">$Title</a>
|
<a href="$Link" class="top">$Title</a>
|
||||||
|
|
||||||
|
<% if LinkingMode == current %>
|
||||||
|
<% if Children %>
|
||||||
|
<ul class="$FirstLast">
|
||||||
|
<% loop Children %>
|
||||||
|
<li><a href="$Link" class="$LinkingMode">$Title</a>
|
||||||
<% if LinkingMode == current %>
|
<% if LinkingMode == current %>
|
||||||
<% if Children %>
|
<% if Children %>
|
||||||
<ul class="$FirstLast">
|
<ul class="$FirstLast">
|
||||||
<% loop Children %>
|
<% loop Children %>
|
||||||
<li><a href="$Link" class="$LinkingMode">$Title</a></li>
|
<li><a href="$Link" class="$LinkingMode">$Title</a></li>
|
||||||
<% end_loop %>
|
<% end_loop %>
|
||||||
|
</ul>
|
||||||
|
<% end_if %>
|
||||||
|
<% end_if %>
|
||||||
|
</li>
|
||||||
|
<% end_loop %>
|
||||||
</ul><% end_if %>
|
</ul><% end_if %>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
</li>
|
</li>
|
||||||
<% end_loop %>
|
<% end_loop %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<li class="$LinkingMode <% if Last %>last<% end_if %>"><a href="$Link" class="top">$Title <% if IsFolder %><span class="is-folder">►</span><% end_if %></a>
|
<li class="$LinkingMode <% if Last %>last<% end_if %>"><a href="$Link" class="top">$Title <% if IsFolder %><span class="is-folder">►</span><% end_if %></a>
|
||||||
|
<% if LinkingMode == current %>
|
||||||
|
<% if Children %>
|
||||||
|
<ul class="$FirstLast">
|
||||||
|
<% loop Children %>
|
||||||
|
<li><a href="$Link" class="$LinkingMode">$Title</a>
|
||||||
<% if LinkingMode == current %>
|
<% if LinkingMode == current %>
|
||||||
<% if Children %>
|
<% if Children %>
|
||||||
<ul class="$FirstLast">
|
<ul class="$FirstLast">
|
||||||
<% loop Children %>
|
<% loop Children %>
|
||||||
<li><a href="$Link" class="$LinkingMode">$Title</a></li>
|
<li><a href="$Link" class="$LinkingMode">$Title</a></li>
|
||||||
<% end_loop %>
|
<% end_loop %>
|
||||||
|
</ul>
|
||||||
|
<% end_if %>
|
||||||
|
<% end_if %>
|
||||||
|
</li>
|
||||||
|
<% end_loop %>
|
||||||
</ul><% end_if %>
|
</ul><% end_if %>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user