There is a little bit in TagTemplate: tag=<<currentTiddler>>, which tells the tag-pill what to display. With the default <<currentTiddler>>, it will display the title of the tiddler corresponding to the tag. With {{!!caption}} it'll display the contents of the caption-field of the tag-tiddler.
Now, I'm trying to figure out how to get the tag-pill to instead display the number of tiddlers tagged with some specific tag. I thought {{{[tag[<<currentTiddler>>]count[]]}}} would work, but it doesn't - it simply displays "0". However, if you manually-input the title of the tag in the same filter as follows: {{{[tag[ACTUALTAG]count[]]}}}, it displays the correct count. I admit I don't understand how the filter-operators work, or even how to correctly call them (the documentation (specifically Filter Operators, count Operator, and count Operator (Examples)) was unhelpful to me), and I got the {{{[tag[ACTUALTAG]count[]]}}} from Tobias Beer's tiddlywiki. Any help would be appreciated. Thanks.
--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/450ee4a9-b7f1-4132-984e-72298540a3a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
\define count-tag(tag-name)
<$count filter="[tag[$tag-name$]]"></$count>
\endOf course it can also be used within a tiddler whose title is the tag in this way: <$macrocall $name="count-tag" tag-name={{!!title}}/> :but then it is simpler to just use the $count widget: <$count filter="[tag<currentTiddler>]"/>
Regards