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

Ernesto Baschny [cron IT] ernst at cron-it.de
Wed Apr 9 21:05:20 CEST 2008


Steffen Kamper wrote: on 09.04.2008 20:52:
> "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

I was thinking the other way around. My extension wants to provide 
different icons, depending on the installed skin. t3skin author doesn't 
know or doesn't care about my module. So in my ext I have:

typo3conf/ext/myext/icons/t3skin/module_icon.gif
typo3conf/ext/myext/icons/t3skin/ ... other "t3skin-like" icons
...
typo3conf/ext/myext/icons/default/module_icon.gif
typo3conf/ext/myext/icons/default/ ... other icons (fallback) ...

Any standard way to output the correct icons depending on which skin is 
installed? That could be used for the "version" sysext, which seem to 
provide the old fashioned "cm_icon.gif" which doesn't fit the t3skin.

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list