samuelet / indexmenu

A dokuwiki plugin to show a customizable and sortable index for a namespace.
http://dokuwiki.org/plugin:indexmenu
GNU General Public License v2.0
47 stars 43 forks source link

Collapse all except path to current node #288

Closed cepm-nate closed 10 months ago

cepm-nate commented 10 months ago

Is there a mode to default "collapse all except path to current node"? I'd expect this to be somewhat useful with the navbar setting. I've read through the options, did I miss it?

Klap-in commented 10 months ago

You like to only expand the current node?

{{indexmenu>:#1|navbar}}

Adding #number set the number of levels that should expanded on load. So #1 loads one level from the requested namespace.

cepm-nate commented 10 months ago

Ah, I misread the # usage, and didn't experiment enough.

I also cloned the repo, and if I get time, will look into a way (as an option) to bring in a TOC (customizeable levels deep) into the SEARCH function so it's also in the tree.

Thanks for all your work on this!