Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v11 here: TYPO3 ELTS.
ModuleLayout ViewHelper <be:moduleLayout>
Note
This ViewHelper is not available by default.
Import its namespace
{namespace be=TYPO3\
in the Fluid file or
xmlns:
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:
:
name
-
- Type
- string
Name of the module, defaults to the current plugin name, if available
title
-
- Type
- string
Title of the module.