mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 09:05:56 +00:00
changed getSubmenu to getSubmenuLocation
Because it doen't return the submenu itself, it returns the preferred location
This commit is contained in:
parent
0df804f86c
commit
3dcf210045
@ -593,7 +593,7 @@ class DocumentationViewer extends Controller {
|
|||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getSubmenu() {
|
public function getSubmenuLocation() {
|
||||||
if ($this->currentLevelOnePage) {
|
if ($this->currentLevelOnePage) {
|
||||||
if (self::$separate_submenu && !self::$recursive_submenu) {
|
if (self::$separate_submenu && !self::$recursive_submenu) {
|
||||||
return 'separate';
|
return 'separate';
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<% control EntityPages %>
|
<% control EntityPages %>
|
||||||
<li>
|
<li>
|
||||||
<a href="$Link" class="$LinkingMode">$Title</a>
|
<a href="$Link" class="$LinkingMode">$Title</a>
|
||||||
<% if Top.Submenu = nested %>
|
<% if Top.SubmenuLocation = nested %>
|
||||||
<% if Children %>
|
<% if Children %>
|
||||||
<% include DocSubmenu %>
|
<% include DocSubmenu %>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
@ -16,7 +16,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
<% if Submenu = separate %>
|
<% if SubmenuLocation = separate %>
|
||||||
<% control CurrentLevelOnePage %>
|
<% control CurrentLevelOnePage %>
|
||||||
<% if Children %>
|
<% if Children %>
|
||||||
<div class = "sidebar-box">
|
<div class = "sidebar-box">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user