<<tree prefix:"root/">>The toc macros provided by tiddlywiki operate by looking for the tiddlers tagged with each tiddler in the tree. For this reason it is easy to build a tree using the new here button.
If the tiddlers already exist you will need to tag them with the tiddler name that they need to appear below.
The existing toc and tree macros are also designed to go as many levels deep as the tags indicate.
If however you want a toc based on some other information like the content of a field you need another macro. I think Mario made one to support his "new here with parent" button.
Coincidently I need to write something similar today so I will share a toc macro you can edit today.
It is surprisingly easy if you learn about recursive code parterns. I have shared similar code before so search the forum if you are in a hurry.
Today I plan to build a multi-level hierarchy which works like a toc but uses a different condition for each level, rather than only tagging.
Regards
Tony