Could you not also use: <$list filter="[{!!field-value}listed{!!field-name}]"> <<currentTiddler>><br> </$list>
cmari On Friday, July 14, 2017 at 2:05:18 PM UTC-7, stevesuny wrote: > > Worked like a charm. > > OK, I would never have gotten to figure that out. It seems these generic > \define sitting on top of macros or templates are very powerful and useful > addition to the general process of transclusion. > > Thanks for your help! I'll post the results in another thread soon. > > //steve. > > On Friday, July 14, 2017 at 4:52:34 PM UTC-4, Mark S. wrote: >> >> 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/9493fb69-09ca-4719-ad3f-264079819224%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.