On Friday, February 28, 2020 at 11:49:18 AM UTC-8, Bastian wrote:
>
> I enhanced the tiddler template where I added some content, that should 
> only be displayed when the current tiddler has one of two tags.
> The tags are either "project" or "task".  I have set up this list filter:
>
> <$list filter="[is[current]tag[project] || is[current]tag[task]]"> 
>
>  content for tiddlers with either project or task tag
>
> </$list> 
>
>
> but it just won't work. I also tried different positions of the brackets 
> but either the content is displayed for every tiddler or for none.
>

Filter syntax doesn't use "||" to represent OR.

Instead, use two space-separated filter "runs", like this:

<$list filter="[is[current]tag[project]] [is[current]tag[task]]"> 

Note that each filter run is a complete filter syntax (including a set of 
matching outermost square 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/65e3b0fd-916e-44e7-8a11-6f7539a003c5%40googlegroups.com.

Reply via email to