This is perfect, I knew I needed to iterate I just didn't know how to do it.
Thank you!
On Monday, September 7, 2020 at 10:30:34 PM UTC-4 Eric Shulman wrote:
> 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 to 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/40809c7c-16e0-4361-8d69-6d17f7e84cb2n%40googlegroups.com.