DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
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 |
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'}" />
|