Fully open navigation tree
bizxchange says:
I need to get my full navigation tree output in some way, hopefully without copying it all section by section.
Basically on the actual wiki my navigation tree looks something like this:
- Subject 1
- Subject 2
- Subject 3
If I click into subject 1 it might look like this:
- Subject 1
- Topic 1
- Topic 2
- Subject 2
- Subject 3
But then if I click into subject 2 it looks like this:
- Subject 1
- Subject 2
- Topic 1
- Subject 3
And so on and so forth. I need to get this:
- Subject 1
- Topic 1
- Item 1
- Item 2
- Topic 2
- Topic 1
- Subject 2
- Topic 1
- Topic 2
- Topic 3
- Subject 3
- Topic 1
- Item 1
- Item 2
- Item 3
- Topic 2
- Topic 3
- Item 1
- Item 2
- Another level
- Topic 1
Basically so the whole thing is expanded out. I hope that makes sense. Is there a way to do this?
Posted at 5:44 AM on May 6, 2010
You can add "expandall" to the _TreeNav tag to display a fully expanded tree. For example, create a page and insert the following:
[[include:_TreeNav root=Menu expandall]]
This has always been there, but wasn't documented. Thanks for the reminder!
Matt W.
Posted at 8:59 AM on May 7, 2010
By the way... For full documentation of _TreeNav and the other include scripts, see Include Scripts.
Posted at 8:59 AM on May 7, 2010
That didn't seem to work. It shows the same navigation as on the left, not expanded.
Posted at 11:51 AM on May 7, 2010
Can you post a link to the example?
Posted at 2:14 AM on May 7, 2010
http://university.bizx.com/Navigation-Expanded
My site is private, but I assume you have a way to get in.
Posted at 2:17 AM on May 7, 2010
Hi,
There was an errant <span> tag mixed into your include tag. This could be seen when the page was viewed using the plain text editor. I've removed that and the tree is now showing fully expanded.
Cheers,
Matt
Posted at 9:54 PM on May 8, 2010