How to display a button if particular tiddler has a specific tag

I want to display a button on the current tiddler if a particular tiddler say Tiddler-A has a specific tag called TagA How to create a filter for this purpose ?

<$list filter="[[Tiddler-A]tag[TagA]]" variable=none>
   <$button ...> ... </$button>
</$list>

Notes:

  • Using variable=none prevents the $list widget from setting the value of currentTiddler, so that the $button widget inside the $list still defaults to referencing the tiddler in which the entire syntax is contained.

enjoy,
-e

2 Likes

Why not a ViewTemplate?

edit - I see, a particular tidder… rather than any tiddler tagged TagA

In someways this can be read as on any tiddler

And yes @EricShulman’s solution in a tiddler with the $:/tags/ViewTemplate will appear, if the condition is true, on any tiddler.

It can also be done through the cascade mechanisium, but view template is best for this case.