kirsty
Member
I can define a widget in a template using
	
	
	
		
but although I'm told this...
I can't figure out the right syntax to provide the options.
I've tried various variations on passing in
(The same question was asked here but it didn't get answered.)
				
			
		Code:
	
	<xf:widget class="Blah\Widget\TestWidget" />but although I'm told this...
- You can also provide widget-specific options as attributes when the class attribute is used.
I can't figure out the right syntax to provide the options.
I've tried various variations on passing in
paramName='paramValue' in the xf:widget tag (e.g. params="['abc']" is how they work in an xf:callback) but I haven't hit on anything that turns up when I getContextParams() in the widget's render method. Maybe the context params the wrong place to be looking? But I've dumped all the vars and can't see my params anywhere.(The same question was asked here but it didn't get answered.)
 
 
		 
 
		