diff --git a/syntax.php b/syntax.php old mode 100644 new mode 100755 index cfad11c..a9a09e0 --- a/syntax.php +++ b/syntax.php @@ -145,6 +145,16 @@ class syntax_plugin_navigation extends DokuWiki_Syntax_Plugin } } $output .= '
  • ' . $title . '
  • ' . PHP_EOL; + $this->depth--; + } + } else { + // if we have reached the maximum depth, lets at least check if the namespace has a starting page and display this + if ($start = $node->hasChild('start')) { + $access = auth_quickaclcheck($start->getFullID()); + if ($access > 0) { + $title = (strlen($start->getMetaData('title')) > 0 ? $start->getMetaData('title') : $start->getName()); + $output .= '
  • ' . $title . '
  • ' . PHP_EOL; + } } } }