Folks,
This solution I presented very early worked for me,
The Key is given the state tiddler is "qualified" it is based on the
currentTiddler, and in my example the current tiddler is changed to match
the tag, and thus there is a different state tiddler for each tag.
The macro is defined in $:/core/macros/tag and uses $:/core/ui/TagTemplate
I looked at modifing the $:/core/ui/TagTemplate references to `<<qualify
"$:/state/popup/tag">>` to `<<qualify "$:/state/popup/tag/$tag$">>` since
the $tag$ is always available in the macros may be unnecessary
<<tag test>>
<<tag fred>>
<<tag test>>
Mentioning the same tag in the same tiddler will cause the popup twice but
this is easily avoided.
Regards
Tony
On Tuesday, March 17, 2020 at 11:36:07 AM UTC+11, TonyM wrote:
>
> Soren,
>
> The tags macro overcomes this limitation
>
> <$list filter="[all[]tags[]]">
> <$macrocall $name=tag tag=<<currentTiddler>>/>
> </$list>
>
> Only the clicked tag drop down appears.
>
> Regards
> Tony
>
> On Tuesday, March 17, 2020 at 10:03:18 AM UTC+11, Soren Bjornstad wrote:
>>
>> Hi everyone,
>>
>> I am trying to make a simple table that lists tiddlers matching a filter,
>> along with those tiddlers' tags (in the standard pill display). I've
>> written the following template tiddler:
>>
>> <table>
>> <$list
>> filter="[all[current]backlinks[]!tag[Source]!tag[Publication]!tag[Place]!tag[Meta]!tag[PAO]]">
>> <tr>
>> <td>
>> <$link>{{!!title}}</$link>
>> </td>
>> <td class="tc-tags-wrapper">
>> <$list filter="[all[current]tags[]]"
>> template="$:/core/ui/TagTemplate"/>
>> </td>
>> </tr>
>> </$list>
>> </table>
>>
>> This renders nicely enough when I transclude it. However, when the same
>> tag appears multiple times in a list and I click on that tag pill, every
>> pill's menu opens, creating an unusable mess:
>>
>> [image: shot.png]
>>
>> How can I make only the pill I click on open? From my limited knowledge
>> of web programming, I am guessing this is happening because the pills don't
>> have unique identifiers, but I have no idea how to go about fixing this in
>> my template.
>>
>
--
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/15826e22-3fe2-493a-84e6-f021c73ea1e7%40googlegroups.com.