[TYPO3] Naming content columns
Bernd Wilke
xoonsji02 at sneakemail.com
Wed Jul 12 20:13:08 CEST 2006
On Mon, 10 Jul 2006 12:11:54 +0200, Kenneth Bo Larsen wrote
with subject "[TYPO3] Naming content columns":
> I'd very much like to rename the "normal" "right" etc. content-columns
> in the backend.
>
> I have searced for answers but can't find anything.
>
> Anyone??
>
> Regards
> Kenneth Bo Larsen
new columns/columnstitle in backend: Backend:
in the directory 'typo3conf' is a file named 'extTables.php'.
edit this one and enter the following:
<php-code>
t3lib_extMgm::addPageTSConfig('
mod.SHARED.colPos_list = 0,1,2,3,4,5
');
$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||Fusszeile||||||||","5")
);
// the titles are given in multiple languages for different BE-languages:
maybe like english|danish|german|?|?|... (I don't know exactly)
</php-code>
pay attention to have a line in 'localconf.php':
<php-code>
$typo_db_extTableDef_script = 'extTables.php';
</php-code>
for completness:
you access the new columns like this:
<typoscript-code>
temp.additionalcolumn = CONTENT
temp.additionalcolumn {
table = tt_content
select {
pidInList = this
orderBy = sorting
where = colPos = <column-number>
}
}
</typoscript-code>
Bernd
--
----------------
Bernd Wilke
Annweilerstr.20
40229 Düsseldorf
0211/229 2800
More information about the TYPO3-english
mailing list