[!!!][TASK] Fix configuration for backend module icons
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / 7.3 / Feature-66822-SpriteIconsInBackendModules.rst
1 ===================================================
2 Feature: #66822 - Allow Sprites For Backend Modules
3 ===================================================
4
5 Description
6 ===========
7
8 Backend Modules (both Main Modules like "Web" and Submodules like "Filelist") can now use sprites instead of images for
9 displaying the icons in the module menu on the left side of the TYPO3 Backend.
10
11 Registering a module can now look like this (as an example the "Page" module):
12
13 .. code-block:: php
14
15 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
16 'web',
17 'layout',
18 'top',
19 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Layout/',
20 array(
21 'script' => '_DISPATCH',
22 'access' => 'user,group',
23 'name' => 'web_layout',
24 'iconIdentifier' => 'module-web',
25 'labels' => array(
26 'll_ref' => 'LLL:EXT:backend/Resources/Private/Language/locallang_mod.xlf',
27 ),
28 )
29 );
30
31 One can use any available sprite icon known to TYPO3.