1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-03 18:53:28 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/howtos/Adding_a_table_of_contents_to_the_sidebar.tid

21 lines
908 B
Plaintext
Raw Normal View History

created: 20160424150551727
modified: 20170204191234906
tags: [[Customise TiddlyWiki]]
title: Adding a table of contents to the sidebar
type: text/vnd.tiddlywiki
A customisable [[table of contents|Table-of-Contents Macros]] can be added to the sidebar with the following steps:
# Create a tiddler called [[TableOfContents]]
# Give it the tag ''~$:/tags/SideBar''
# Set the text to <div><pre><code><$text text="""
<div class="tc-table-of-contents">
<<toc-selective-expandable 'TableOfContents'>>
</div>"""/></code></pre></div>
# Add a ''caption'' field with the text ''Contents''
# Add a ''list-after'' field with the text ''~$:/core/ui/SideBar/Open''
Add entries to the table of contents by creating tiddlers tagged ''~TableOfContents''. An easy way is to choose {{$:/core/images/new-here-button}} ''new here'' from the tiddler toolbar. To create sub-entries, tag them with the name of the parent entry.