Hi Hegart,

The way things are atm, you're unfortunately going to have to mess with:

$:/core/ui/TagTemplate 
<http://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FTagTemplate>

e.g. by changing this:

<$transclude tiddler={{!!icon}}/> <$view field="title" format="text" />

to

<$transclude tiddler={{!!icon}}/> <$reveal type="match" default=<
<tag-caption>> text=""><$view field="tag-caption" format="text"><$view 
field="title" format="text" /></$view></$reveal><$reveal type="nomatch" 
default=<<tag-caption>> text=""><$text text=<<tag-caption>>/></$reveal>

...see attached tiddler.

This allows you to either define a *tag-caption* variable to set a custom 
tagpill title or also use a *tag-caption* field at the tiddler to display a 
custom tag-pill title.

With this little helper macro on top (also attached), things would be most 
simple:

title: $:/_my/macros/ctag
tag: $:/tags/Macro

\define ctag(tiddler,title)
<$vars tag-caption="$title$" currentTiddler="$tiddler$">{{||$:/core/ui/
TagTemplate}}</$vars>
\end

e.g.:

   - <<ctag Concepts>>
   - <<ctag Concepts "Custom Title">>

Best wishes,

Tobias. 

-- 
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/fafc34a6-6f6c-4923-8a05-60f6bfefc0db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: $--_my-macros-ctag.json
Description: application/json

Attachment: $--core-ui-TagTemplate.json
Description: application/json

Reply via email to