On Wednesday, August 14, 2019 at 1:51:23 PM UTC-7, Matthew Liberman wrote:
> Is there an elegant way to have folding sections of tiddlers? I've seen > some hacks with buttons but i want to have the usual tiddler folding so i > can have each tag transclude tiddlers tagged with it, but have each of > those be initially folded. First, create a tiddler, tagged with "$:/tags/Macro", containing: \define foldit() <$reveal state="$:/state/folded/$(currentTiddler)$" type="match" text="show" > <$button set="$:/state/folded/$(currentTiddler)$" setTo="hide" class= "tc-btn-invisible"><$text text="$(currentTiddler)$" /></$button> <$transclude tiddler="$(currentTiddler)$" mode="block"/> </$reveal> <$reveal state="$:/state/folded/$(currentTiddler)$" type="nomatch" text=" show"> <$button set="$:/state/folded/$(currentTiddler)$" setTo="show" class="tc- btn-invisible"><$text text="$(currentTiddler)$" /></$button> <br> </$reveal> \end Use it like this: <$list filter="[tag[TableOfContents]]"> <<foldit>> </$list> enjoy, -e Eric Shulman TiddlyTools: "Small Tools for Big Ideas!" (tm) http://tiddlytools.github.io (TWClassic) InsideTiddlyWiki: The Missing Manuals -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/903ed013-ec61-4855-88c9-a719fe24310e%40googlegroups.com.