Project

General

Profile

Actions

Feature #49643

closed

Allow flexible configuration for BE submodules, disable the page tree for submodules

Added by Benni Mack over 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2013-07-03
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #56809: Missing icons for main modules in backend group/users record access listsClosed2014-03-12

Actions
Related to TYPO3 Core - Task #64921: Document needed changes if you remove conf.phpClosedWouter Wolters2015-02-07

Actions
Actions #1

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

Actions #2

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)
);

Actions #3

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

Actions #4

Updated by Benni Mack over 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF