Package

ViewHelpers

ViewHelper Documentation

v:var.get

Variable: Get

ViewHelper used to read the value of a current template variable. Can be used with dynamic indices in arrays:

<v:var.get name="array.{dynamicIndex}" />
<v:var.get name="array.{v:var.get(name: 'arrayOfSelectedKeys.{indexInArray}')}" />
<f:for each="{v:var.get(name: 'object.arrayProperty.{dynamicIndex}')}" as="nestedObject">
    ...
</f:for>

Or to read names of variables which contain dynamic parts:

<!-- if {variableName} is "Name", outputs value of {dynamicName} -->
{v:var.get(name: 'dynamic{variableName}')}

Arguments

name string

useRawKeys boolean

ViewHelper Resources

Schema Resources