Actions
Bug #59447
closedPage -> Contains Plugin doesn't use sprite if availeble
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2014-06-10
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
If you add an item to the "Contains Plugin" value of page the icon in TCEForms is only shown if the icon value is set.
But for the page tree rendering the sprite icon (if defined) is used to show an icon belonging to your selection.
$GLOBALS['TCA']['pages']['columns']['module']['config']['items'][] = array( 'LLL:EXT:my_ext/Resources/Private/Language/locallang_db.xlf:contains-my_ext', 'my_ext', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('my_ext') . 'ext_icon.png' ); \TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon( 'pages', 'contains-my_ext', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('my_ext') . 'ext_icon.png' );
This will show an icon in the page tree and in the backend form.
$GLOBALS['TCA']['pages']['columns']['module']['config']['items'][] = array( 'LLL:EXT:my_ext/Resources/Private/Language/locallang_db.xlf:contains-my_ext', 'my_ext' ); \TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon( 'pages', 'contains-my_ext', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('my_ext') . 'ext_icon.png' );
This will only show an icon in the page tree.
Updated by Mathias Schreiber about 9 years ago
- Status changed from New to Closed
Sprites are dead ;-)
Actions