mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
1a4475af1b
* Add version to Pages as they are built in the DocumentationManifest * Add getter for version from request/URL * Filter Pages in Documentation Index by the requested version
22 lines
462 B
Scheme
22 lines
462 B
Scheme
<div id="documentation_index" class="box">
|
|
<div id="page-numbers">
|
|
<span>
|
|
<% loop $AllVersionPages.GroupedBy(FirstLetter) %>
|
|
<a href="#$FirstLetter">$FirstLetter</a>
|
|
<% end_loop %>
|
|
</span>
|
|
</div>
|
|
|
|
<% loop $AllVersionPages.GroupedBy(FirstLetter) %>
|
|
<h2 id="$FirstLetter">$FirstLetter</h2>
|
|
|
|
<ul class="third semantic">
|
|
<% loop $Children %>
|
|
<li>
|
|
<a href="$Link">$Title</a>
|
|
</li>
|
|
<% end_loop %>
|
|
</ul>
|
|
<% end_loop %>
|
|
</div>
|