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.
Register a toplevel module (Extbase)
This page describes how to register a toplevel menu with extbase.
Toplevel modules like "Web" or "File" are registered with the same API:
ext_
:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'MyExtension',
'mysection',
'',
'',
[],
[
'access' => '...',
'iconIdentifier' => '...',
'labels' => '...',
]
);
This adds a new toplevel module mysection
. This identifier can now
be used to add submodules to this new toplevel module:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'MyExtension',
'mymodule1',
'mysection',
'',
[],
[
'access' => '...',
'labels' => '...'
]
);
Note
The main module name should contain only lowercase characters. Do not use an underscore or dash.