The $parameters widget now allows a variable to be named and set containing all parameter/value pairs either named or unnamed
...
$params="params-var"
...
Optional name of a variable in which is made available the JSON representation of the parameters passed to the parent transclusion (as an object where the keys are the parameter names and the values are the corresponding values)
eg;
params-var={"0":"1stparam value","more":"another value"}
I would hope we can put together a little more documentation to help make use of such a string and link to it from the $parameters widget documentation.
- For example how could w eremove the first parameter and pass on the rest to another variable
- How do we feed this into a setMultipleVariables or setMultipleFields action
But also;
Would it be possible to add to the $transclude widget an additional parameter eg $params
so that a variable set to the above could be use to pass all the above parameters to the procedure we are calling eg;
<$transclude $variable=my-proc $params=<<params-var>> other-param="test"/>
This will help with procedures and widgets that themself call other procedures by permitting all the parameters to be passed through to the called procedure.
- Such a $params may replace all parameters passed
- Even better if it could be combined with
other-param
but less important
- Even better if it could be combined with
- It would be useful if we could do this for widgets as well.