[TYPO3-core] RFC: #8076: New workspace icon for t3skin

Steffen Kamper steffen at sk-typo3.de
Wed Apr 9 20:52:47 CEST 2008


"Ernesto Baschny [cron IT]" <ernst at cron-it.de> schrieb im Newsbeitrag 
news:mailman.1.1207766630.27391.typo3-team-core at lists.netfielders.de...
> Steffen Kamper wrote: on 09.04.2008 20:36:
>> "Ernesto Baschny [cron IT]" <ernst at cron-it.de> schrieb im Newsbeitrag 
>> news:mailman.1.1207765465.22889.typo3-team->
>>> It is just not being used in the "Workspace" menu item in the "User 
>>> tool" section in the left menubar. Any special reason why?
>>>
>>
>> didn't noticed before.
>>
>> Reason is that in class.modulemenu.php the icon is rendered this way:
>>
>> $icon['html']     = '<img src="'.$iconFileRelative.'" '.$iconSizes[3].' 
>> title="'.htmlspecialchars($iconTitle).'" 
>> alt="'.htmlspecialchars($iconTitle).'" />';
>>
>> so there is no possibility to override it by skin extension. Should go in 
>> extra BT entry.
>
> Ok, I see. Is there any way a BE-module that comes with an extension (be 
> it a sysext or not) could provide different set of "icons" depending on 
> the currently loaded skin? Is there an API to do that?
>
> Cheers,
> Ernesto

you can use the skin-API by using t3lib_iconworks::skinImg that uses the 
$TBE_STYLES for icons. So this is the official way that skinexts are 
possible to overwrite icons of modules/extensions

vg  Steffen 




More information about the TYPO3-team-core mailing list