ModuleLayout.menu ViewHelper <be:moduleLayout.menu>
¶
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 adding a menu to the doc header area of <be:moduleLayout>. It accepts only <be:moduleLayout.menuItem> view helpers as children.
Examples¶
Default:
<be:moduleLayout>
<be:moduleLayout.menu identifier="MenuIdentifier">
<be:moduleLayout.menuItem label="Menu item 1" uri="{f:uri.action(action: 'index')}"/>
</be:moduleLayout.menu>
</be:moduleLayout>
Copied!
Source code¶
Go to the source code of this ViewHelper: MenuViewHelper.php (GitHub).
Arguments¶
The following arguments are available for <be:moduleLayout.menu>
:
Name | Type | Default |
---|---|---|
string |
-
identifier
¶ -
- Type
- string
- Required
true
Identifier of the menu