Thank you Matthew, that's a nice solution as well! Il giorno martedì 17 aprile 2018 16:58:36 UTC+2, Matthew Lauber ha scritto: > > Something you can consider is using the multiple flag on your select ala > > <$select multiple field='tags'> > <$list filter='[tag[prj]]'> > <option><$view field='title'/></option> > </$list> > </$select> > > This will render as a multiple select with the already present tags > highlighted. You can add or remove tags by using the standard ctrl-click > to select an additional item. > > On Saturday, April 14, 2018 at 7:28:49 AM UTC-4, LDL wrote: >> >> Hello everyone, >> I would like to add a tag to the current tiddler via a SelectWidget that >> offers a filtered list of tags/tiddlers. >> >> The filter selects all the tiddlers tagged with "prj" and I would like >> the current tiddler to be tagged with the selected item (one of the >> tiddlers tagged with "prj") >> >> The solution I've come up so far is the following: >> >> <$select field='tags'> >> <$list filter='[tag[prj]]'> >> <option><$view field='title'/></option> >> </$list> >> </$select> >> >> My current problem with this solutions is that all the tags are removed >> and substituted with the one derived from the SelectWidget. I would like, >> instead, to retain all the existing tag and just add the selection from the >> SelectWidget to the tags. >> >> Any idea on how to achieve the desired behavior? >> >> Thanks, >> Lorenzo >> >
-- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0ff67d65-3d95-40e6-96cb-64647751c1b8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

