[TYPO3-dev] How to transform code to use sprites
Nicolas de Haen
typo3 at ndh-websolutions.de
Fri Aug 20 07:45:58 CEST 2010
Hi Steffen,
could you please give me a hint how to implement a custom icon for a
custom doktype with the new API?
With the old API I had:
$PAGES_TYPES[$myDoktypeID] = array(
'type' => 'web',
'icon' => 'cat1',
'allowedTables' => '*',
'tx_myExtension'=>1);
and
$TBE_STYLES['skinImg']['gfx/i/cat1'] = array(
t3lib_extMgm::extRelPath('myExtensiom').'category.gif',
'width="16" height="16"'
);
Thanks,
Nico
Am 17.08.2010 13:57, schrieb Steffen Ritter:
> 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