CarloGgi,

On Wed, Dec 15, 2021 at 2:02 PM CarloGgi <[email protected]> wrote:

> \define check_feature(feature) [getindex[$feature$]trim[]match[Y]]
>
> <$set name="has_feature" value=<$macrocall $name='check_feature'
> feature='IFTTT'/> >
>   <ul>
>       <$list filter="[tag[system]filter<has_feature>]" variable="sys">
>           <li> <$link to=<<sys>>> <<sys>> </$link> </li>
>       </$list>
>   </ul>
>
> </$set>
>
[...]

> <$macrocall $name='check_feature' feature={{!!current_chosen_feature}}/>
>
> where of course field 'current_chosen_feature' wouldbe set by the
> <$select> widget.
>

Filter operators can use transclusions for parameters. That should help
with this case. Something like this (untested):


<$list filter="[tag[system]]
:filter[getindex{!!current_chosen_feature}trim[]match[Y]]" variable="sys">


See https://tiddlywiki.com/#Filter%20Parameter.

Brian

-- 
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/CAO5X8CxPs%2BkYXb9F49xsRdsz-9-RGpgDDZM%3DXj-BoYvGm%3DS51A%40mail.gmail.com.

Reply via email to