cosmocode / simplenavi

Create a simple navigation tree based on DokuWiki namespaces
http://www.dokuwiki.org/plugin:simplenavi
GNU General Public License v2.0
14 stars 11 forks source link

Hide sidebar-page in navigation #18

Closed natrius closed 1 year ago

natrius commented 6 years ago

I really like this plugin, it looks good, but it does also show the "sidebar" page in the menu, is it possible to hide it? I could not find an option for something like that.

dennisverspuij commented 6 years ago

You can use hidepages for this.

sergey-inform commented 4 years ago

Not very useful if someone wants to keep sidebar-pages in '?do=index' but hide all sidebar pages in navigation menus.

Mibran commented 4 years ago

Changing line 104 in syntax.php helped, new code:

}elseif($type == 'f' && ((strlen($file)>10 && substr($file,-11) == 'sidebar.txt') || !empty($opts['nofiles']) || substr($file,-4) != '.txt' )){

(Dirty hack, of course that should be parametrized as option.)