<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>
<$list filter="[all[]tags[]]">
<$macrocall $name=tag tag=<<currentTiddler>>/>
</$list>
<$list filter="[all[current]backlinks[]]"> {{!!title}}
<$list filter="[all[current]tags[]]">
<$macrocall $name=tag tag=<<currentTiddler>>/> </$list>
<br></$list>
<$list filter="[[test Tiddler 1]tags[]]" template="$:/core/ui/TagTemplate"> </$list>
<$list filter="[[test Tiddler 2]tags[]]" template="$:/core/ui/TagTemplate"> </$list>
<$list filter="[all[current]backlinks[]]">
<div>
{{!!title}}
<$list filter="[all[current]tags[]]">
<$transclude tiddler="$:/core/ui/TagTemplate"/>
</$list>
</div>
</$list>
<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" position="below" animate="yes" class="tc-drop-down">
<table>
<$list filter="[all[current]backlinks[]]">
<$set name="_currentTiddler" value=<<currentTiddler>> >
<tr>
<td>
<$link>{{!!title}}</$link>
</td>
<td class="tc-tags-wrapper">
<$list filter="[all[current]tags[]]" template="$:/myTagTemplate"/>
</td>
</tr>
</$set>
</$list>
</table>
\whitespace trim
\define tagPopupState() $:/state/popup/tag/$(storyTiddler)$/$(_currentTiddler)$/$(currentTiddler)$
<span class="tc-tag-list-item">
<$set name="transclusion" value=<<currentTiddler>>>
<$macrocall $name="tag-pill-body" tag=<<currentTiddler>> icon={{!!icon}} colour={{!!color}} palette={{$:/palette}} element-tag="""$button""" element-attributes="""popup=<<tagPopupState>> dragFilter='[all[current]tagging[]]' tag='span'"""/>
<$reveal state=<<tagPopupState>> type="popup" position="below" animate="yes" class="tc-drop-down">
<$set name="tv-show-missing-links" value="yes">
<$transclude tiddler="$:/core/ui/ListItemTemplate"/>
</$set>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TagDropdown]!has[draft.of]]" variable="listItem">
<$transclude tiddler=<<listItem>>/>
</$list>
<hr>
<$macrocall $name="list-tagged-draggable" tag=<<currentTiddler>>/>
</$reveal>
</$set>
</span>
<<tag test>>
<<tag fred>>
<<tag test>>
--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/15826e22-3fe2-493a-84e6-f021c73ea1e7%40googlegroups.com.
Hi Tony!Good to submit a ticket and ask Jeremy to revise this if has no consequences!Best wishesMohammad
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.
Mentioning the same tag in the same tiddler will cause the popup twice but this is easily avoided.
The number generated by Qualify is related to the tiddlername, specifically the current tiddler so if that changes for each tag, as in my first post the issue only occurs if the same tag is referenced in the same tiddler with the same currentTiddler value. In Soren's original post his current Tiddler need only change according to the items in the left hand list, and the mentioning of the same tag in the list should not result in multiple popups as each is qualified by the tiddler in the left hand list.
The quickest solution would be to use your own template, a modified version of the $:/core/ui/TagTemplate
This is untested code and not the most elegant, but something like this should work:
\define tag(tag)
{{$tag$||$:/core/ui/TagTemplate}}
\end
\define tag2(tag)
<$set name=currentTag value="$tag$">
{{||$:/core/ui/TagTemplate2}}
</$set>
\end
\whitespace trim
<span class="tc-tag-list-item">
<$set name="transclusion" value=<<currentTag>>>
<$macrocall $name="tag-pill-body" tag=<<currentTag>> icon={{!!icon}} colour={{!!color}} palette={{$:/palette}} element-tag="""$button""" element-attributes="""popup=<<qualify "$:/state/popup/tag">> dragFilter='[<currentTag>]tagging[]]' tag='span'"""/>
<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" position="below" animate="yes" class="tc-drop-down">
<$set name="tv-show-missing-links" value="yes">
<$tiddler tiddler=<<currentTag>> >
<$transclude tiddler="$:/core/ui/ListItemTemplate"/>
</$tiddler>
</$set>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TagDropdown]!has[draft.of]]" variable="listItem">
<$tiddler tiddler=<<currentTag>> >
<$transclude tiddler=<<listItem>>/>
</$tiddler>
</$list>
<hr>
<$macrocall $name="list-tagged-draggable" tag=<<currentTag>>/>
</$reveal>
</$set>
</span>
<$list filter="1 2">
<$list filter="[all[]tags[]sort[]]" variable=tagname>
<$macrocall $name=tag2 tag=<<tagname>>/>
</$list>
</$list>