On Wednesday, February 17, 2021 at 7:40:09 AM UTC-8 JM wrote:

> <$list filter="[tag[project]sort[title]]">
> <$link to={{!!title}}>''<$view field="title"/>''</$link><br>
> <$list filter="[is[current]tagging[]tag[CAD]sort[title]]">
> <$link to={{!!title}}><$view field="title"/></$link><br>
> </$list><br>
> </$list>
>
> Is it possible to show only those projects, of which tiddlers with the 
> tags project-title and CAD exist?
>

You can surround the inner $list with another $list that uses "limit[1]" to 
act as a test, like this:

<$list filter="[tag[project]sort[]]">
   <$link /><br>
   <$list filter="[tag{!!title}tag[CAD]limit[1]]" variable="has_CAD_tag">
      <$list filter="[tag{!!title}tag[CAD]sort[]]">
         <$link /><br>
      </$list><br>
   </$list>
</$list>

Notes:
* *variable="has_CAD_tag"* prevents the test from changing the value of the 
currentTiddler.
* simplified the inner filter to use *tag{!!title}* instead of 
*is[current]tagging[]*
* used *<$link />* abbreviated syntax instead of verbose *<$link 
to={{!!title}}><$view field="title"/></$link>*
* used *sort[]* (default parameter is "title")

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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/129aac8f-2659-4812-bb2a-0f847ab9ab0en%40googlegroups.com.

Reply via email to