On Wednesday, April 15, 2020 at 5:38:14 PM UTC-7, Magnus wrote:
>
>
> <$list
> filter="[rank[species]search:caption{$:/state/customSearch}contains:summer_light{$:/state/customSearch!!summer_light_search}sort[caption]">//<$link
>
> to={{!!title}}><$view field="caption"/></$link>//<br></$list>
>
>
There's a syntax error here -- needs to end ...sort[caption]*]*
> to search for all tiddler with the field value specified in the
> state-tiddler, but if the state-tiddler field is empty nothing is shown, I
> would like to see all tiddler regardless of the value in the
> target-tiddlers fields, how can I go about to do that?
>
>
Are you saying that if the search doesn't find anything then you want to
see ALL tiddlers? You could use the ~ ELSE clause to put
a fallback filter expression that shows all tiddlers in the event that the
first run doesn't match any. See:
https://tiddlywiki.com/#Filter%20Expression
--
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/7d95ace8-5ae3-4330-97b6-31b8f19bac47%40googlegroups.com.