GetMultiColumnWizardValues ViewHelper <mwc:getMultiColumnWizardValues>
ViewHelper for parsing the multicolumnwizard json string. Use this to prepare the data from a multicolumnwizard-field into an array.
Examples
Field-data is found in: data.
<f:variable name="mcwArray" value="{mcw:getMultiColumnWizardValues(json: '{data.multicolumnwizard}', associative: true)}" />`
Copied!
Content of mcw
:
array(3) {
'field1' => 'value',
'field2' => 'value',
'field3' => 'value',
}
Copied!
So it can be used like:
<span>{mcwArray.field1}</span>
Copied!
Depending on the current value of {data.
and the associative
argument.
Arguments
The following arguments are available for the getMultiColumnWizardValues ViewHelper:
associative
-
- Type
- bool
- Default
- false
If the array should be associative
json
-
- Type
- string
- Required
- 1
The multicolumn wizard json string.