The TiddlyWiki standard distribution includes a set of macros to display a hierarchical "Table of Contents" https://tiddlywiki.com/#Table-of-Contents%20Macros https://tiddlywiki.com/#Table-of-Contents%20Macros%20(Examples)
For your purposes, you probably want to use the `<<toc-selective-expandable ...>>` macro. enjoy, -e -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/49091781-5faa-4341-9a68-694394f8c922n%40googlegroups.com.

