Layout ViewHelper <f:layout>
Note
This reference is part of the documentation of Fluid Standalone. If you are working with Fluid in TYPO3 CMS, please refer to TYPO3's ViewHelper reference instead.
With this ViewHelper, you can select a layout to be used for the current template.
Deprecated since version 4.4
Prevously, it was possible to set the layout of a template with the special
variable layout
. This will no longer work with Fluid 5.
Examples
<f:layout name="main" />
Copied!
Output:
(no output)
Copied!
Go to the source code of this ViewHelper: LayoutViewHelper.php (GitHub).
Arguments
The following arguments are available for the layout ViewHelper:
name
-
- Type
- string
Name of layout to use. If none given, "Default" is used.