mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
If a folder has no children, default to menu
This happens in the event of the documentation home page.
This commit is contained in:
parent
4c53cf5646
commit
804c67dcaf
@ -38,6 +38,17 @@
|
||||
<% end_loop %>
|
||||
</ul>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="documentation_children">
|
||||
<ul>
|
||||
<% loop Menu %>
|
||||
<li>
|
||||
<h3><a href="$Link">$Title</a></h3>
|
||||
<% if Summary %><p>$Summary</p><% end_if %>
|
||||
</li>
|
||||
<% end_loop %>
|
||||
</ul>
|
||||
</div>
|
||||
<% end_if %>
|
||||
|
||||
<% include DocumentationNextPrevious %>
|
||||
|
Loading…
Reference in New Issue
Block a user