How to add subcontent to table of contents.

77 views
Skip to first unread message

Tearzz

unread,
Sep 28, 2018, 6:34:34 PM9/28/18
to TiddlyWiki
It says "Add entries to the table of contents by creating tiddlers tagged TableOfContents. An easy way is to choose </g> new here from the tiddler toolbar. To create sub-entries, tag them with the name of the parent entry." on this page: https://tiddlywiki.com/static/Adding%2520a%2520Table%2520of%2520Contents%2520to%2520the%2520Sidebar.html

How in the world do I tag the parent entry?

Let's say I have these two "chapters":

Tiddler: General
Chapter 1 - Introduction
Chapter 2

I have a tiddler called "TableOfContents" which is showing:
General.

But I want it to show:
General
     Chapter 1 - Introduction
     Chapter 2

Mark S.

unread,
Sep 28, 2018, 7:22:01 PM9/28/18
to TiddlyWiki
You're not showing your <<toc>> setup. For your situation you would typically have your table of contents tiddler containing:

<<toc General>>

and then you would have a tiddler called "General".

You would also have tiddlers Chapter 1 - Introduction and
Chapter 2 - More stuff   both tagged "General".

Now the entries should appear in the tiddler with the <<toc>> macro.

The work flow generally goes down the tree, not up. So for instance if you wanted to make sub-tiddlers of "Chapter 1 - Introduction", then you would go to tiddler "Chapter 1 - Introduction" click on the down-pointing arrow in the upper right hand of the tiddler and select "new here". Then in the tiddler that appears you would enter a new title (e.g. Intro to my Intro).

HTH
-- Mark

barro...@gmail.com

unread,
Sep 29, 2018, 1:07:50 AM9/29/18
to TiddlyWiki
to add to Mark S's reply,

it looks like you used the
<<toc-selective-expandable 'TableOfContents'>>
from the how-to page?
and if you tagged it
$:/tags/SideBar
as the how-to page says to, you don't need to worry about that tiddler any further, it becomes a tab/page in the right sidebar and updates itself.  You don't need to worry about any other tagging for it.
 The next page you would need to focus on would be your "General" tiddler, it gets tagged
TableOfContents to be your root (first) entry of the table of contents sidebar tab tiddler.  Your next tiddlers "Chapter 1 - Introduction" and "Chapter 2" get tagged General and they will appear nested(indented under General in the table of contents.  To do the tagging, you add them while in a tiddler's create/edit mode or you can do the "new from here" of the parent tiddler you want them children of as Mark S suggested which automatically tags a tiddler created that way.
Reply all
Reply to author
Forward
0 new messages