Yeah, you can't use {{!!field-name}} notation to substitute for a filter 
operator suffix AFAIK. Use a macro to concatenate and form your filter 
instead, like:

\define indirect() [field:$(field-name)$[$(field-value)$]]
<$vars field-name={{!!field-name}} field-value={{!!field-value}}>
<$list filter=<<indirect>> />
</$vars>

HTH
Mark


On Friday, July 14, 2017 at 1:28:18 PM UTC-7, stevesuny wrote:
>
> My tiddler has these fields:
>
> field-name: instructor
> field-value: Chiang
>
> I want to search for all tiddlers for which field:instructor = Chiang.
>
> This works: filter="[field:instructor{!!field-value}]"
>
> But this doesn't:
>
> filter="[field:{!!field-name}{!!field-value}]"
>
> Sorry to be confusing,
>
> //steve.
>
> On Friday, July 14, 2017 at 4:04:47 PM UTC-4, Mark S. wrote:
>>
>> Hi Steve,
>>
>> Is there a typo here? In the filter you say field-value. But in your text 
>> you say field-name. Which is it?
>>
>> Mark
>>
>> On Friday, July 14, 2017 at 12:56:07 PM UTC-7, stevesuny wrote:
>>>
>>> This filter works: <$list filter="[field:instructor{!!field-value}]">
>>>
>>> My tiddler has field-name=instructor
>>>
>>> How do I transclude {{!!field-name}} into the filter to replace 
>>> "instructor"? 
>>>
>>> (I've tried every possible solution but the right one :)
>>>
>>> Thans, //steve.
>>>
>>>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ca808184-6ec9-409c-84a6-3c73812e90f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to