[tw5] Re: Preventing tag pill menu from appearing multiple times

2020-03-17 Thread TonyM
Filks Here is a fix Define a tag2 macro \define tag2(tag) <$set name=currentTag value="$tag$"> {{||$:/core/ui/TagTemplate2}} \end Create a new template $:/core/ui/TagTemplate2 \whitespace trim <$set name="transclusion" value=<>> <$macrocall $name="tag-pill-body" tag=<> icon={{!!icon}} colour ={

[tw5] Re: Preventing tag pill menu from appearing multiple times

2020-03-17 Thread TonyM
Ahh, Yes, I see now, the first macro involved is \define tag(tag) {{$tag$||$:/core/ui/TagTemplate}} \end So the current Tiddler is set to $tag$ for the tag template, which then calls qualify for each tag. Since it is in effect not keeping the currentTiddler, it sets it to currentTag we can't f

[tw5] Re: Preventing tag pill menu from appearing multiple times

2020-03-17 Thread Soren Bjornstad
On Tuesday, March 17, 2020 at 5:22:08 PM UTC-5, TonyM wrote: > > 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

[tw5] Re: Preventing tag pill menu from appearing multiple times

2020-03-17 Thread TonyM
Post script, I expect one could even use a false currentTiddler to manipulate the "Qualify Macro". Tony On Wednesday, March 18, 2020 at 9:22:08 AM UTC+11, TonyM wrote: > > Mat, > > The number generated by Qualify is related to the tiddlername, > specifically the current tiddler so if that chan

[tw5] Re: Preventing tag pill menu from appearing multiple times

2020-03-17 Thread TonyM
Mat, 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 curr

[tw5] Re: Preventing tag pill menu from appearing multiple times

2020-03-17 Thread Mat
TonyM wrote: > > Mentioning the same tag in the same tiddler will cause the popup twice but > this is easily avoided. > Maybe I don't understand your proposal but, just to make sure: Regarding the Qualify Macro, note that multiple uses of it in the one and same tiddler produces the identical "n

Re: [tw5] Re: Preventing tag pill menu from appearing multiple times

2020-03-17 Thread TonyM
Mohammad, Great but to be clear; I am not suggesting a Fix, I only said "I looked at modifying". Regards Tony On Wednesday, March 18, 2020 at 8:37:16 AM UTC+11, Mohammad wrote: > > Hi Tony! > > Good to submit a ticket and ask Jeremy to revise this if has no > consequences! > > > Best wishes >

Re: [tw5] Re: Preventing tag pill menu from appearing multiple times

2020-03-17 Thread Mohammad Rahmani
Hi Tony! Good to submit a ticket and ask Jeremy to revise this if has no consequences! Best wishes Mohammad On Wed, Mar 18, 2020 at 12:41 AM TonyM wrote: > Folks, > > This solution I presented very early worked for me, > > The Key is given the state tiddler is "qualified" it is based on the

[tw5] Re: Preventing tag pill menu from appearing multiple times

2020-03-17 Thread TonyM
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 $

[tw5] Re: Preventing tag pill menu from appearing multiple times

2020-03-17 Thread Mohammad
Hi Soren, The tiddler I just shared shows how to use the TagTemplate. Your issue is using the same state tiddler, so if there is repeated tag when you click on one of the the other tag pills are opened! Saq has addressed your issue using a custom template and suitable state tiddler. You can als

[tw5] Re: Preventing tag pill menu from appearing multiple times

2020-03-17 Thread Saq Imtiaz
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: > <$list filter="[all[current]backlinks[]]"> > <$set name="_currentTiddler" value=<> > > >

[tw5] Re: Preventing tag pill menu from appearing multiple times

2020-03-17 Thread Soren Bjornstad
Thanks everyone for all your help so far! The tiddler Mohammad linked isn't really what I want to do. I want nested lists where each backlink to the current tiddler is a row, and one of the columns of each row shows the tags of the backlinked tiddlers -- not a multi-column listing of one set o

[tw5] Re: Preventing tag pill menu from appearing multiple times

2020-03-17 Thread Mohammad
Have a look here https://tiddlywiki.com/prerelease/#Formatting%20List%20Results%20as%20Tables%20with%20CSS%20-%20Variable%20Column%20Method --Mohammad On Tuesday, March 17, 2020 at 2:33:18 AM UTC+3:30, Soren Bjornstad wrote: > > Hi everyone, > > I am trying to make a simple table that lists tiddl

[tw5] Re: Preventing tag pill menu from appearing multiple times

2020-03-16 Thread A Gloom
The cause isn't your table but the tag macro-- it has a popup state mechanism I duplicated your problem with 2 stand-alone lists in th same tiddler and got the same results at tiddlywiki . com create some test tiddlers with the same 4 tags and assign each to a seperate list-- clicking on a tag

[tw5] Re: Preventing tag pill menu from appearing multiple times

2020-03-16 Thread Soren Bjornstad
Tony, Thanks for your reply! I switched to using the tag macro per your suggestion, but unfortunately I am still seeing the same behavior. I simplified it a bit just to rule out something wrong with my table, so I now have: <$list filter="[all[current]backlinks[]]"> {{!!title}} <$list filt

[tw5] Re: Preventing tag pill menu from appearing multiple times

2020-03-16 Thread TonyM
Soren, The tags macro overcomes this limitation <$list filter="[all[]tags[]]"> <$macrocall $name=tag tag=<>/> 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 t