How could I apply list filter variables inside a macro call?

I am trying to use a slider macro inside a <$list> widget, but I am having trouble with the field parameter. I can’t get it to populate properly. If I don’t define each slider with its own name, all sliders open or close on a single slick.

<div class="tta-main-menu-content">
	<$list filter="[tag[$:/main-menu/century]]" variable="century" counter="count">
		<span class={{{ [<century>get[tiddler-type]match[alpha]then[tta-menu-slider tta-menu-alpha]] :else[<century>get[tiddler-type]match[delta]then[tta-menu-slider tta-menu-delta]] }}}>
			<<slider label:"""<$text text={{{ [<century>get[caption]] }}}/>""" content:"""
			<$transclude tiddler=<<century>>/>
            /* field paramater not populating as expected */
			""" field:""" {{{ [<century>get[slider]] }}} """>>
            /* I also tried */
            """ field:""" <$text text={{{ [<century>get[slider]] }}}/> """>>
            /* And this has been tried */
            """ field:""" <$text text={{{ [<count>addprefix[slider]] }}}/> """>>
		</span>
	</$list>
</div>

I have attached the slider tiddlers here, thanks to telumire who created these:
$__TiddlyTweaks_Slider_Demo.json (405 Bytes)
$__TiddlyTweaks_Slider_Macro.json (724 Bytes)
$__TiddlyTweaks_Slider_Style.json (555 Bytes)

Use the $macrocall widget instead of the shorthand <<macroname>> syntax.

Something like this:

<$macrocall $name="slider"
   label={{{ [<century>get[caption]] }}}
   content="""<$transclude tiddler=<<century>>/>"""
   field={{{ [<century>get[slider]] }}}
/>

-e

1 Like