[tw5] Set a Table of Contents to show with closed nodes when the tiddler is open

175 views
Skip to first unread message

Pieter-Michiel Geuze

unread,
May 28, 2015, 9:34:44 AM5/28/15
to tiddl...@googlegroups.com

Richard Smith

unread,
May 28, 2015, 9:34:05 PM5/28/15
to tiddl...@googlegroups.com
Hi,

I think an expandable table of contents might give you what you want?

See tiddler:- Example Table of Contents: Selectively Expandable

<div class="tc-table-of-contents">
<<toc-selective-expandable "Contents">>
</div>
Regards,
Richard

Pieter-Michiel Geuze

unread,
May 29, 2015, 8:24:11 AM5/29/15
to tiddl...@googlegroups.com
Sir,

Thank you, that is the Table of Contents that I am using in the example. The issue is that when I open the tiddler the tree is fully open and I would like to know what the syntax in the code is for it to show with all the nodes closed.

Again thank you for your response.

Greg Davis

unread,
May 29, 2015, 11:15:45 PM5/29/15
to tiddl...@googlegroups.com
Hello,

I think you have run into the problem that TiddlyWiki saves the current state every time you do a save. Example when you finish editing a tiddler, whatever the state of the TOC is saved to return the next time it is opened. Most users try to remember to close everything up and do a save before exiting the TiddlyWiki. Then it is in the state they want it to be when it is opened again.

I thought this was addressed sometime ago and finally founded it. Remember to backup your TiddlyWiki before making any changes to the core like this.

Jeremy gave an example of doing this in the thread: https://groups.google.com/forum/#!topic/TiddlyWiki/CgmcRls_mkE

Tobias also has a reference to this in his tb5 — a pocket full of tips at http://tobibeer.github.io/tb5/#States%20And%20Temporary%20Tiddlers

Hope that is what you are looking for.
Greg

Pieter-Michiel Geuze

unread,
Jun 1, 2015, 7:47:56 AM6/1/15
to tiddl...@googlegroups.com
Thank you for your answer, and thank you more for the examples for me to review and learn more from.
Reply all
Reply to author
Forward
0 new messages