[TYPO3-english] new flag-Icons in T3 4.5?
Bernd Wilke
t3ng at pi-phi.tk
Mon Sep 26 09:46:40 CEST 2011
On Wed, 21 Sep 2011 11:39:52 +0200, Bernd Wilke wrote:
> so I don't want extension-...-icons but flags-mobile I changed it to:
> $icons1 = array('flags-mobile', 'flags-mobile-overlay');
> t3lib_SpriteManager::addIconSprite($icons1,t3lib_extMgm::siteRelPath
('add_mobile_flag')
> . 'icon.css');
> and
> .t3-icon-mobile.t3-icon-flags-mobile { background-position:
> 0px 0px;
> background-image:url(../../typo3conf/ext/add_mobile_flag/mobile.png); }
> .t3-icon-mobile-overlay.t3-icon-flags-mobile { background-position:
> 0px 0px;
> background-image:url(../../typo3conf/ext/add_mobile_flag/mobile-
overlay.png);}
> (where is this used????)
>
>
> so I could use the new 'flags'.
> But only after inserting the new 'flag'-name into the sys_language
> record via phpmyadmin. as the new flags does not appear in the selection
> for the flag in a sys_language record in BE.
extending the selection is very easy: looking in the TCA you can find
that all possible languages are hardcoded in the definition of the field
sys_language.flag
but you can add further 'flags'.
just unsure about the usable numbers.
my solution at the moment: add these lines to ext_tables.php:
// load the default TCA values for sys_language
t3lib_div::loadTCA('sys_language');
// add a further flag to the selection:
$TCA['sys_language']['columns']['flag']['config']['items']['1001'] =
array('mobile','mobile','EXT:add_mobile_flag/mobile.png');
bernd
--
/home/wilke/Documents/NG-signature.txt
More information about the TYPO3-english
mailing list