How to setup Table of Content in TiddlyWiki

lowtech picture lowtech · Aug 26, 2015 · Viewed 8k times · Source

If I go TiddlyWiki site I can see tab Content. How can I create my own table of content for my tiddlywiki file?

Answer

Andrew picture Andrew · Nov 1, 2016

I found the documentation for this really confusing, but here's what I did that works best:

<div class="tc-table-of-contents">

<<toc-selective-expandable 'TableOfContents' sort[ind]>>

</div>

Then, tag each tiddler with TableofContents.

Lastly, when editing each tiddler, add a new field named "ind" (for index - you can change this to whatever you like, so long as it's not being used elsewhere, of course). Assign a value to "ind" starting with 0 to tell it what order you want the tiddlers to go in. I incremented by 10 instead of 1 in case I want to rearrange a few things or insert more in the middle.