diff --git a/code/controllers/DocumentationViewer.php b/code/controllers/DocumentationViewer.php index 1c8462f..7546b60 100755 --- a/code/controllers/DocumentationViewer.php +++ b/code/controllers/DocumentationViewer.php @@ -573,7 +573,10 @@ class DocumentationViewer extends Controller { return $children; } - } + } else { + if ($page->getRelativeLink() == $this->Remaining[$level]) { + $page->LinkingMode = 'current'; + } } return false; diff --git a/templates/DocumentationViewer.ss b/templates/DocumentationViewer.ss index ef493bb..2f92ee8 100755 --- a/templates/DocumentationViewer.ss +++ b/templates/DocumentationViewer.ss @@ -5,6 +5,7 @@ <% base_tag %> SilverStripe Documentation + <% require css(docsviewer/css/DocumentationViewer.css) %>