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/#TableOfContents

But 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:

<<TOCtree root="Root">>

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?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2ce4eefc-2a5c-4864-a8af-93a52b95b1b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to