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.multicolumnwizard

<f:variable name="mcwArray" value="{mcw:getMultiColumnWizardValues(json: '{data.multicolumnwizard}', associative: true)}" />`
Copied!

Content of mcwArray:

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.multicolumnwizard} and the associative argument.

Arguments

The following arguments are available for the getMultiColumnWizardValues ViewHelper:

associative

associative
Type
bool
Default
false
If the array should be associative

json

json
Type
string
Required
1
The multicolumn wizard json string.