I've been searching around and trying various old options, but I can't seem to find exactly what I need, so I'm asking directly. Is there a way to have an expandable tree generated, like the TOC example here:
http://tiddlywiki.com/#TableOfContentsBut I don't want to have to specify which tiddlers should appear in the TOC. I would like to do it by specifying a root tiddler, and then all the child tiddlers would have a field called "parent", which would point to the root tiddler.
In this way, you could have multiple levels, with each pointing to the relevant parent:
* Root (no parent)
* Level 1 (parent="Root")
* Level 2 (parent="Level 1")
Then later on I could add another tiddler "New", give it the parent "Root", and the TOC would appear like this:
* Root (no parent)
* Level 1 (parent="Root")
* Level 2 (parent="Level 1")
* New (parent="Root")
So the macro call would be:
The advantage of using the field like that is that I would only need to add the field to a tiddler, and the TOC would update.
Also, by specifying the root of the tree in the macro call, I could just show branches instead of the whole thing.
Is this possible? Has it been done?