Assume I have a shadow tiddler where user is not recommended to touch it. For example
<$list filter="[tag[Learning]]">
</$list>
I wish to pass an extra user defined filter (stored in a tiddler or variable) to further process the first filter. The simple solution is to use subfilter, so if the original code is written like below
<$list filter="[tag[Learning]] :and[subfilter<user-filter>]" >
</$list>
This works fine, but fails if user-filter
is not defined. One work around is to use defualt value like [all[]]
but I am looking for better solution.
In summary: how can I add a user defined filter run (may have many step) to a predefined filter?
Note: The above example can be tested on tiddlywiki.ocm
download User-Defined-Filter-Extra-Filter.json (392 Bytes)
and open Test My-Template, try to change the user-filter