Hi Geoffrey,
I did build a field based TOC implementation [1] lately and I think it can
be used / modified in a way, that would fit your needs.
The approach is a bit different, than your plan. The default behaviour is
like this:
It all starts with a "root" and default field called: "parent" so:
*tid-1* has a field named: parent with the value: root ... which will be
level 1
*tid-2* has a field parent:tid-1 ... level 2
*tid-3* parent:tid-1 ... level 2 ...... and so on
It creates something like:
tid-1
tid-2
tid-3
So if you need an other level 1, you just create * tid-X* with a parent:root
and it will be automatically added to the above list.
So the whole list generation is dynamic.
To translate this to your usecase, just replace: parent with related_to or
associated_with ... which for me is basically the same thing.
The plugin also has some "magic UI buttons" that let you easily create new
tiddlers, that already contain the needed field:value pairs. Which makes
creating the structure much more fun!
At the moment, the macros only create TOC-typed lists. But it would be
possible to make it more flexible and configurable. or have a new version,
that creates tables instead of nested lists. ....
have fun!
mario
[1] https://groups.google.com/forum/#!topic/tiddlywiki/uixJtgcmqQg
[2] TW plugin edition: https://wikilabs.github.io/editions/tocP/
--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/6d089f9c-2f60-445b-b6c6-82fa920c0bf4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.