[TYPO3-english] Changing icon for pages and sysfolders

Morten Kjems mortenkjems at gmail.com
Wed Mar 20 09:27:44 CET 2013


Turns out that $ICON_TYPES are deprecated. Instead this snippet should 
be used:

t3lib_SpriteManager::addTcaTypeIcon('pages', 'contains-mytype', 
'../fileadmin/images/pageicons/mytype.png');

So the entire snippet end up like this:

$TCA['pages']['columns']['module']['config']['items'][] = 
array('mytype', 'mytype', '../fileadmin/images/pageicons/mytype.png');
t3lib_SpriteManager::addTcaTypeIcon('pages', 'contains-mytype', 
'../fileadmin/images/pageicons/mytype.png');

> I deleted both files in typo3temp/sprites but it had no effect - still
> no icon is displayed?

This turned out be be simply browser cache.

So to change add an icon you will need to add the snippet above to 
extTables.php.

Delete the two files in typo3temp/sprites and clear all Typo3 cache

Then clear your browser cache.



More information about the TYPO3-english mailing list