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
|
||||
*/
|
||||
public function getSubmenu() {
|
||||
public function getSubmenuLocation() {
|
||||
if ($this->currentLevelOnePage) {
|
||||
if (self::$separate_submenu && !self::$recursive_submenu) {
|
||||
return 'separate';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<% control EntityPages %>
|
||||
<li>
|
||||
<a href="$Link" class="$LinkingMode">$Title</a>
|
||||
<% if Top.Submenu = nested %>
|
||||
<% if Top.SubmenuLocation = nested %>
|
||||
<% if Children %>
|
||||
<% include DocSubmenu %>
|
||||
<% end_if %>
|
||||
|
@ -16,7 +16,7 @@
|
|||
</div>
|
||||
<% end_if %>
|
||||
|
||||
<% if Submenu = separate %>
|
||||
<% if SubmenuLocation = separate %>
|
||||
<% control CurrentLevelOnePage %>
|
||||
<% if Children %>
|
||||
<div class = "sidebar-box">
|
||||
|
|
Loading…
Reference in New Issue