Bug #38138
Task #38086: Enhance TYPO3 bootstrap mechanism
Add module menu object to the TYPO3 backend
Status: | Resolved | Start date: | 2012-06-17 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Susanne Moog | % Done: | 100% |
|
Category: | - | Spent time: | - | |
Target version: | - | |||
TYPO3 Version: | 6.0 | Is Regression: | ||
PHP Version: | Sprint Focus: | |||
Complexity: |
Description
The backend at the moment uses a combination of the GLOBAL variables TBE_MODULES and TBE_MODULES_EXT to build the main menus of the backend (the module menu on the left and the submodule menus of the backend modules - look at info for an example).
To be able to easily change the representation of these menus and to offer a clean API for rendering menus the menu is refactored into an object structure with n levels. At the moment the old GLOBALS are migrated to a 3 level menu object. This means that you can use the module menu object in your backend modules to render your submenu.
This patch just adds the object structure and transformation. It does not change any handling of menus in the core itself. These changes can be done piece by piece after this patch.
Associated revisions
[FEATURE] Add module menu object to the TYPO3 backend
The backend at the moment uses a combination of the
GLOBAL variables TBE_MODULES and TBE_MODULES_EXT to
build the main menus of the backend (the module menu
on the left and the submodule menus of the backend
modules - look at info for an example).
To be able to easily change the representation of
these menus and to offer a clean API for rendering
menus the menu is refactored into an object structure
with n levels. This patch migrates the old GLOBALS
to a 3 level menu object. This means that you can use
the module menu object in your backend modules to
render your submenu.
This patch just adds the object structure and
transformation. It does not change any handling of
menus in the core itself. These changes can be done
piece by piece after this patch.
Change-Id: I1f7f9f5fcf83274840acef6cbeb267ea4ca460c3
Resolves: #38138
Releases: 6.0
Reviewed-on: http://review.typo3.org/12146
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[FEATURE] Add module menu object to the TYPO3 backend
The backend at the moment uses a combination of the
GLOBAL variables TBE_MODULES and TBE_MODULES_EXT to
build the main menus of the backend (the module menu
on the left and the submodule menus of the backend
modules - look at info for an example).
To be able to easily change the representation of
these menus and to offer a clean API for rendering
menus the menu is refactored into an object structure
with n levels. This patch migrates the old GLOBALS
to a 3 level menu object. This means that you can use
the module menu object in your backend modules to
render your submenu.
This patch just adds the object structure and
transformation. It does not change any handling of
menus in the core itself. These changes can be done
piece by piece after this patch.
Change-Id: I1f7f9f5fcf83274840acef6cbeb267ea4ca460c3
Resolves: #38138
Releases: 6.0
Reviewed-on: http://review.typo3.org/12146
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
History
#1 Updated by Gerrit Code Review about 3 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12146
#2 Updated by Gerrit Code Review about 3 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12146
#3 Updated by Susanne Moog about 3 years ago
You can test the change with adding
$moduleMenu = t3lib_div::makeInstance('Typo3_ModuleMenu'); var_dump($moduleMenu);
for example in the about index controller and having a look at the source code.
#4 Updated by Gerrit Code Review about 3 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12146
#5 Updated by Gerrit Code Review about 3 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12146
#6 Updated by Gerrit Code Review about 3 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12146
#7 Updated by Gerrit Code Review about 3 years ago
Patch set 6 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12146
#8 Updated by Susanne Moog about 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset da64930b319d437e6e0ee3df62480018684aa6d5.