[TYPO3] new content column

Bernd Wilke xoonsji02 at sneakemail.com
Wed May 10 00:32:29 CEST 2006


On Tue, 09 May 2006 19:50:14 +0300, Tapio Markula wrote
with subject "Re: [TYPO3] new content column":

> Bernd Wilke wrote:
> 
> > ----------------------------------------------------------------------
> > t3lib_extMgm::addPageTSConfig('mod.SHARED.colPos_list = 0,1,2,3,4,5');
> > 
> > $TCA["tt_content"]["columns"]["colPos"]["config"]["items"] = array (
> > 	"0" => array ("middle||middle||||||||","0"),
> > 	"1" => array ("left||left||||||||","1"),
> > 	"2" => array ("down left||down left||||||||","2"),
> > 	"3" => array ("right||right||||||||","3"),
> > 	"4" => array ("down right||down right||||||||","4"),
> > 	"5" => array ("footer||footer||||||||","5")
> > 	); 
> 
> that is only in one language - if you need BE for other languages that
> is not a good way - or add a language file and
> replace "middle||middle||||||||"  with "LLL:...."

As far as I know (I have no documentation at hand), these fields between
the pipes '|' are the different languages. In the same order as in the
standard locallang.php:

	'default' (english)
	'dk'
	'de'
	'no'
	'it'
	'fr'
	'es'
	 :
	 :

so the correct code would be:
$TCA["tt_content"]["columns"]["colPos"]["config"]["items"] = array (
 	"0" => array ("middle||Mitte||||||||","0"),
 	"1" => array ("left||Links||||||||","1"),
 	"2" => array ("down left||Unten Links||||||||","2"),
 	"3" => array ("right||Rechts||||||||","3"),
 	"4" => array ("down right||Unten Rechts||||||||","4"),
 	"5" => array ("footer||Fußzeile||||||||","5")
 	); 

In the first I translated a german example, where two entries for every
column were filled, both with the same german word.
That is as incorrect like my example with both words in english.
I think it depends on the languages your BE-Users are capable.

Bernd




-- 
----------------
Bernd Wilke     
Annweilerstr.20 
40229 Düsseldorf
0211/229 2800



More information about the TYPO3-english mailing list