On Monday, September 7, 2020 at 7:00:06 PM UTC-7, Taylor Jensen wrote:
>
> What I'd like to do is create a list formatted *"Title *- tags of that 
> tiddler"
> So we have the tag template `{{Transclusion||$:/core/ui/TagTemplate}}` 
> that lets me get "Transclusion" in nice tag pill form.
> But when I do:
> `<$list filter="[tag[mytag]]">
> <li><$link to={{!!title}}/>{{!!tags||$:/core/ui/TagTemplate}}</li>
> </$list>
> `
> all I get is "*Title - *that title but in pill form". The template can't 
> use anything but the title of a tiddler. But getting all the tags in pill 
> form is clearly generatable since it's generated at the top of every 
> tiddler. Is there a way I can access that and use it in lists?
>

The tags field is a list of tags, not a single value.
To show a tag pill for each tag of a given tiddler, you need to use a 
second $list widget display one tag at a time.
Note also that the default parameter value for $link is the current 
tiddler, so you don't need to specify to={{!!title}}

Thus:
<$list filter="[tag[mytag]]">
   <li><$link/><$list filter={{!!tags}}>{{||$:/core/ui/TagTemplate}}</$list>
</li>
</$list>

enjoy,
-e

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2c28f08c-971c-48ff-83a3-4069ec9b9e2co%40googlegroups.com.

Reply via email to