From be3d9d623b9bd60124b2b2b05f9e2fc89b12cdd6 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Fri, 6 Jun 2014 13:17:01 +0200 Subject: [PATCH] Expand subtrees even if you are beyond maxdepth. --- syntax.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syntax.php b/syntax.php index 16b96af..9e3bada 100755 --- a/syntax.php +++ b/syntax.php @@ -121,6 +121,7 @@ class syntax_plugin_navigation extends DokuWiki_Syntax_Plugin private function RenderNodes(DokuWikiNameSpace $node) { + global $INFO; $this->depth++; $output = ''; foreach ($node->getNodes() as $node) { @@ -138,7 +139,7 @@ class syntax_plugin_navigation extends DokuWiki_Syntax_Plugin } else if ($node instanceof DokuWikiNameSpace) { /** @var DokuWikiNameSpace $node */ - if ($this->depth <= $this->maxDepth) { + if (($this->depth <= $this->maxDepth) || (strpos($INFO['id'],$node->getFullID()) === 0)) { if ($access > 0) { // lets check if the the namespace has a startpage and if yes link to it if ($start = $node->hasChild('start')) {