[TYPO3-core] RFC #16007: Allow skins to register sprites through addIconSprite
Ernesto Baschny [cron IT]
ernst at cron-it.de
Fri Oct 15 22:11:03 CEST 2010
Hi,
This is a SVN patch request.
Type: Feature / API finetuning
BT reference: http://bugs.typo3.org/view.php?id=16007
Branches: trunk
Problem:
Currently, extensions can register sprites using
t3lib_spriteManager::addIconSprite(). This requires an array of icons
(which will be added to
$TBE_STYLES['spritemanager']['spriteIconsAvailable']) and the CSS
filename which contains the generated sprite.css.
A skin might also want to provide a different sprite, but the skin's CSS
files are already loaded automatically from the registered directory.
See #15229 where t3skin wants to add a sprite for flags. After this fix,
we will use the API to do so in t3skin, simply not passing the CSS
filename, but just the array of images.
How to test:
Not possible yet, but see patch #15229 patch -v3, where it will be used.
Cheers,
Ernesto
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16007.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101015/33fcd360/attachment.txt>
More information about the TYPO3-team-core
mailing list