[FEATURE] Allow module menu items to use sprite icons 16/39316/2
authorBenjamin Mack <benni@typo3.org>
Thu, 7 May 2015 04:49:25 +0000 (12:49 +0800)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 9 May 2015 15:06:23 +0000 (17:06 +0200)
commit4cc680ed0086ed7c4b0c226b0049034e1cb3a024
treee4aff78099e3e1ae3526afbb534b3a497fe543fa
parenta89d3765663c0ed05c8435ad767f106fa9d60bf8
[FEATURE] Allow module menu items to use sprite icons

In the course of the 7.x development, the main modules (web / file etc.)
have received a hard-coded list of fontawesome sprite icons. This way
it is not (easily) possible to override the icons and to give a custom
main module its own custom sprite icon.

A new property in the module configuration "icon" allows now to
hand in a sprite icon instead of a path to png/gif file.

At the same time the property handling for the "icon" property
inside the module menu is now simplified as a string instead
of an array with all additional information as everything is already
compiled together in the BackendModuleRepository.

All main modules shipped with the core now have proper icons
mapped inside ext_tables.php in the core.

Resolves: #66822
Releases: master
Change-Id: If1a62528d9de56034a0330c0051dfcb66e59469c
Reviewed-on: http://review.typo3.org/39316
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Backend/ToolbarItems/HelpToolbarItem.php
typo3/sysext/backend/Classes/Backend/ToolbarItems/UserToolbarItem.php
typo3/sysext/backend/Classes/Domain/Model/Module/BackendModule.php
typo3/sysext/backend/Classes/Domain/Repository/Module/BackendModuleRepository.php
typo3/sysext/backend/Resources/Private/Templates/ModuleMenu/Main.html
typo3/sysext/core/Documentation/Changelog/master/Feature-66822-SpriteIconsInBackendModules.rst [new file with mode: 0644]
typo3/sysext/core/ext_tables.php
typo3/sysext/t3skin/Classes/Slot/IconStyleModifier.php