On Tuesday, May 19, 2020 at 2:30:30 PM UTC-7, Dave Parker wrote:
>
> I'm trying to add a little indication to items in a draggable list to have
> the word "done" beside the item but only if that tiddler has a tag "done"
> This seems to add "done" to every item in the list, regardless of whether
> its tagged done or not:
> [[draggableTemplate1]]
> <$link to={{!!title}}>{{!!title}}<$list filter=
> "$(currentTiddler)$tag[done]"> @@color:beige;^^done^^@@</$list></$link>
>
> list (macro) tiddler:
> \define tgngd()
> ^^(draggable)^^
>
> <<list-tagged-draggable tag:"$(currentTiddler)$"
> itemTemplate:"draggableTemplate1">>
>
> \end
> <<tgngd>>
>
Try this:
<$link to={{!!title}}>{{!!title}}<$list filter="[<currentTiddler>tag[done]]">
@@color:beige;^^done^^@@</$list></$link>
notes:
* the filter syntax needs an outer enclosing pair of square brackets
* within filters, references to variables (e.g., <currentTiddler>) use only
*single* angle brackets
enjoy,
-e
--
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/c99fd550-00f8-41f4-a97d-c25e1d072a1c%40googlegroups.com.