Slot.Render

Renders a slot defined in the ViewHelper “Field” with the ViewHelper “Slot”.

This ViewHelper is useful when used inside a field layout (see chapter “Layouts”).

Important

This ViewHelper must be used inside a ViewHelper “Field”.

Arguments

Argument Description
* slot Name of the rendered slot.
arguments

Array of arbitrary arguments that will be passed to the slot and can be used within it as Fluid variables.

Note

If an argument defined in this list is also filled in the arguments of the slot (see “Slot”), it will be overridden with the value defined in the slot definition.

Example

1
2
3
4
5
6
7
{namespace fz=Romm\Formz\ViewHelpers}

<fz:slot.render slot="Label.Before" arguments="{class: 'label-before'}" />

<label for="{fieldId}">{label}</label>

<fz:slot.render slot="Label.After" arguments="{class: 'label-after'}" />