Hi DD > <$list filter="[tag[foo]sort[title]]"> > <$button popup="$:/popstate"><<currentTiddler>></$button> > <$reveal type="popup" state="$:/popstate"> > <div class="tc-drop-down"> > <$link filter="[all[current]tagging[]]" /> > </div> > </$reveal> > </$list>
I think there’s two issues here: * The <$link> widget doesn’t take a “filter” attribute; the “to” attribute is used to specify a single tiddler to link to. In this case you could use the list-links macro: <<list-links "[all[current]tagging[]]">> * You’re using the same state tiddler for all the buttons/reveals; this means that they are ganged together, and clicking any of the buttons opens all the reveal widgets. The solution is to use the qualify macro to generate a unique state tiddler name for each popup. To do that we have to move the body of the list widget into a separate template tiddler, eg called “ListEntryTemplate”: <$button popup=<<qualify "$:/state/mytagchooser">>><<currentTiddler>></$button> <$reveal type="popup" state=<<qualify "$:/state/mytagchooser">>> <div class="tc-drop-down"> <<list-links "[all[current]tagging[]]">> </div> </$reveal> Then you’d invoke it with the following: <$list filter="[tag[Learning]sort[title]]" template="ListEntryTemplate”/> Best wishes Jeremy > > ...doesn't work, because each button's popup gets the same content (the > content for the last button in the list). I understand WHY this happens - > similar to why an item in a FOR loop in Javascript has to be assigned as a > property of a button in order to be accessed once the script is done. But I > can't figure out how to use the TW5 tool set to accomplish this. I tried > wrapping the buttons and reveal in a $set that defines the result of > [all[current]tagging[]] as a variable, but that also does not work. Could > someone show me how this would be done, or point me to a relevant example? > > Thanks much! --Des > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWikiDev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/tiddlywikidev > <https://groups.google.com/group/tiddlywikidev>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywikidev/bc7136c6-3aa0-48e3-b33b-494b0a8d178b%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywikidev/bc7136c6-3aa0-48e3-b33b-494b0a8d178b%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywikidev. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/F461A2FB-D1EC-4531-B429-1CED79CB5220%40gmail.com. For more options, visit https://groups.google.com/d/optout.
