ModuleLayout ViewHelper <be:moduleLayout>
¶
Note
This ViewHelper is not available by default.
Import its namespace
{namespace be=TYPO3\CMS\Backend\ViewHelpers\}
in the Fluid file or
xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers/"
in the opening HTML tag.
A ViewHelper for having properly styled backend modules. It is recommended to use it in Fluid Layouts. It will render the required HTML for the doc header. All module specific output and further configuration of the doc header must be rendered as children of this ViewHelper.
Examples¶
Default:
<be:moduleLayout>
<f:render section="content" />
</be:moduleLayout>
Output:
<!-- HTML of the backend module -->
Source code¶
Go to the source code of this ViewHelper: ModuleLayoutViewHelper.php (GitHub).
Arguments¶
The following arguments are available for <be:moduleLayout>
:
-
name
¶ -
- Type
- string
Name of the module, defaults to the current plugin name, if available
-
title
¶ -
- Type
- string
Title of the module.