<$list filter="[tag[myTag]]"> <$view field="text" format="wikified"/> </$list>
<$list filter="[tag[myTag]]">
<$transclude mode="block"/>
</$list>
<$list filter="[tag[myTag]]">
<h1><$link><$view field="title"></$link></h1>
<$transclude mode="block"/>
</$list><dl>
<$list filter="[tag[myTag]]">
<dt><$link><$view field="title"></$link></dt>
<dd><$transclude field="some-other-field"/></dd>
</$list>
</dl>Reading through this discussion with Jeremy https://github.com/Jermolene/TiddlyWiki5/issues/121 it sounds as though I should be able to transclude the content of multiple tiddlers based on their tags using the following<$list filter="[tag[myTag]]"> <$view field="text" format="wikified"/> </$list>
<$list filter="[tag[Research]tag[Journal]!sort[created]]">
<br/>
<h2><$link><$transclude field="title" mode="block"/></$link></h2>
<$transclude field="text" mode="block"/>
<br/>
<hr/>
</$list><$list filter="[tag[#book page]]">
<$link><$view field="caption"/></$link>
<$transclude field="text" mode="block"/>
</$list>
<$list filter="[tag[#book page]]">
<$link><<currentTiddler>> </$link>
{{!!text}}
</$list>
I need to transclude a relatively large number of tiddlers and display the tags in the transcluded content wrapped in their graphical form (lozenges).This should give me a list of the titles of all tiddlers tagged with a primary tag as well as displaying the transcluded tiddlers tags - in the form of lozenges.
Effectively I want to do this to use tags as status indicators for each of the transcluded tiddlers and display that in a list.
<$list filter="[tag[...primary tag goes here...]]">
__<$link />__<br>
<$list filter="[<currentTiddler>tags[]]" variable="currentTag">
<$macrocall $name="tag" tag=<<currentTag>> />
</$list><br>
<blockquote><$transclude mode="block"/></blockquote>
</$list>
It works perfectly, but I have discovered a problem with my grand plan, which I should have predicted.Many of the tags are repeated in the new tiddler, as they are transcluded, and when one is clicked, all the others also produce drop downs of their associated tiddler titles.Is there any way of stopping that behaviour on a per tiddler basis so that the tags displayed by your filter code are not clickable. Or even, at a push, all tags globally are rendered non clickable?
<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" position="below" animate="yes" class="tc-drop-down"><$list filter="[tag[... your tag here ...]]">
__<$link />__<br>
<$list filter="[<currentTiddler>tags[]]" variable="currentTag">
{{||ShowTagPill}}
</$list><br>
<blockquote><$transclude mode="block"/></blockquote>
</$list>
<$macrocall $name="tag" tag=<<currentTag>> />{{||ShowTagPill}}<$macrocall $name="tag" tag=<<currentTag>> />