On Friday, October 2, 2020 at 7:30:07 AM UTC-7, Sapphireslinger wrote: > > How do I create just one tiddler that commands all book tiddlers to show > that code? Is there just one tiddler I can create that just commands that > code show up in every book tiddler? or every tiddler that happens to have > the tag "book"? >
Create a tiddler (e.g., "BookQuotes"), tagged with "$:/tags/ViewTemplate", containing: <$list filter="[<currentTiddler>tag[book]]"> <$list filter="[tag<currentTiddler>!sort[title]]"> <h2><$link><$transclude field="title" mode="block"/></$link></h2> <$transclude field="text" mode="block"/> </$list> </$list> Notes: 1) The $:/tags/ViewTemplate automatically adds the BookQuotes tiddler content to *every* tiddler 2) The outer $list widget makes the content only appear in tiddlers tagged with "book" 3) The inside of the $list widget is the output to show.... in this case, the code you posted. By default, the output appears at the bottom of the standard tiddler ViewTemplate output. You can change the placement of your output by using drag-and-drop inside the $:/tags/ViewTemplate tag pill displayed with <<tag $:/tags/ViewTemplate>>. enjoy, -e -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6e370392-b3f8-442a-ab01-cef3c202a86co%40googlegroups.com.

