From 387198d9d990abdf1e3ac941aa6b9f9e48a43e05 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 24 Apr 2016 16:15:07 +0100 Subject: [PATCH] Add instructions for adding a table of contents tab to the sidebar --- ...ing_a_Table_of_Contents_to_the_Sidebar.tid | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 editions/tw5.com/tiddlers/howtos/Adding_a_Table_of_Contents_to_the_Sidebar.tid diff --git a/editions/tw5.com/tiddlers/howtos/Adding_a_Table_of_Contents_to_the_Sidebar.tid b/editions/tw5.com/tiddlers/howtos/Adding_a_Table_of_Contents_to_the_Sidebar.tid new file mode 100644 index 000000000..5b3b5b58e --- /dev/null +++ b/editions/tw5.com/tiddlers/howtos/Adding_a_Table_of_Contents_to_the_Sidebar.tid @@ -0,0 +1,20 @@ +created: 20160424150551727 +modified: 20160424151419273 +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
<$text text="""
+
+ +<> + +
"""/>
+# 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 ''New here'' from the tiddler toolbar. To create sub-entries, tag them with the name of the parent entry.