Unfortunately, you'll need to hack the TOC macro code a bit. Assuming that
you only want this behavior in one tiddler, it's not too hard. Put this at
the top of your tiddler:
\define toc-caption()
<$set name="tv-wikilinks" value="no">
<$transclude field="caption">
{{||$:/core/ui/TagTemplate}}
</$transclude>
</$set>
\end
\define toc-body(tag,sort:"",itemClassFilter,exclude,path)
<ol class="tc-toc">
<$list filter="""[all[shadows+tiddlers]tag[$tag$]!has[draft.of]$sort$]
-[[$tag$]] $exclude$""">
<$vars item=<<currentTiddler>> path="""$path$/$tag$"""
excluded="""$exclude$
-[[$tag$]]""">
<$set name="toc-item-class" filter="""$itemClassFilter$""" emptyValue=
"toc-item" value="toc-item-selected">
<li class=<<toc-item-class>>>
<$list filter="[all[current]toc-link[no]]"
emptyMessage="<$link><$view
field='caption'>{{||$:/core/ui/TagTemplate}}</$view></$link>">
<<toc-caption>>
</$list>
<$macrocall $name="toc-body" tag=<<item>> sort="""$sort$"""
itemClassFilter="""$itemClassFilter$""" exclude=<<excluded>> path=<<path>>/>
</li>
</$set>
</$vars>
</$list>
</ol>
\end
Now the output will show up as buttons. This code slightly modifies two of
the supporting macros of the TOC macro system (toc-caption and toc-body).
You can look at the code and see where the tag pill template was applied.
HTH
-- Mark
--
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 post to this group, send email to [email protected].
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/39007e7b-4f6e-4c37-afa7-c874a0bbc533%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.