Feature #49643
closedAllow flexible configuration for BE submodules, disable the page tree for submodules
100%
Description
Previously Backend modules could be configured
via a conf.php file that had $MCONF and $MLANG
variables. Additionally, a Extbase extension could
add more configuration via another API method.
However, the building of the module list
(ModuleLoader) and the internal rendering for
ExtJS (ModuleMenuView) is quite tricky and hard
to override.
The public API call
ExtensionManagementUtility::addModule() has another
parameter now to ship additional configuration that will
override $MCONF from conf.php, or even replace
that information completely, so conf.php will be obsolete.
This is a prerequisite for overriding the configuration
"navigationComponentId" to allow the page tree in other areas
than the web module. Additionally, the if the new option
"inheritNavigationComponentFromMainModule" is set to
FALSE (TRUE if not set), then e.g. a web_* module can have
the page tree disabled.
Updated by Gerrit Code Review over 11 years ago
- Status changed from New to Under Review
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21850
Updated by Benni Mack over 11 years ago
My Examples => I modified belog extension and func extension
belog => add the pagetree with 'navigationComponentId' => 'typo3-pagetree'
// Module Tools->Log
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'TYPO3.CMS.' . $_EXTKEY,
'system',
'log',
'',
array(
'Tools' => 'index',
'WebInfo' => 'index',
),
array(
'access' => 'admin',
'icon' => 'EXT:belog/ext_icon.gif',
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf',
'navigationComponentId' => 'typo3-pagetree'
)
);
func =>
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
'web',
'func',
'',
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/',
array('inheritNavigationComponentFromMainModule' => FALSE)
);
Updated by Gerrit Code Review over 11 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21850
Updated by Benni Mack over 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c45b2bf844e064ef9d7eadb4163f0c5265bf407b.