[TYPO3-dev] How to transform code to use sprites

Steffen Ritter info at rs-websystems.de
Tue Aug 17 13:57:21 CEST 2010


Am 17.08.2010 11:43, schrieb Georg Ringer:
> Hi,
>
> I am updating some extensions and want to switch to sprites.
>
> If I got the code like this
> --------------
> '<img src="' . $GLOBALS['BACK_PATH'].'gfx/i/' .
> ($r_row['orig_recipient']<  0 ? 'tc_mails_group.gif':'tc_mails.gif')
> --------------
>
> How to I find out how to get the correct sprite names of those icons?
>
> Thanks a lot
> Georg
Hi Georg,
non-core/sysext related icons are not shipped with t3skin (or icons 
which have been core-related before t3skin and are in typ3/gfx/ for 
compatiblity to 3.x). Therefore they are not in any sprite.
Additionally they are targeted to be removed in 4.6. An Extension should 
ship their required icons itself (besides the "general one" which should 
be used from core). There is an API "t3lib_spritemanager" which is for 
registering extension Icons to the sprite api.

regards

Steffen




More information about the TYPO3-dev mailing list