Layout ViewHelper <f:layout>

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

name
Type
string
Name of layout to use. If none given, "Default" is used.