[TYPO3] (remaining)adding columns with names
Bernd Wilke
xoonsji02 at sneakemail.com
Sat Feb 24 18:57:41 CET 2007
On Sat, 24 Feb 2007 08:11:11 +0000, Mahmood Adeel wrote
with subject "[TYPO3] (remaining)adding columns with names":
>
> Lot of thanks for your help about "adding more columns in typo3"u gave me this linkhttp://www.pi-phi.de/t3v4/index.php?id=45&L=1i went thre and put the following code in the suggested filesbut in html temlate i use id "colNormal" and it appears in typo3 as a "middle" and it works it means that the column name "middle" is not orignal name because "colNormal" still works so what id i have to put for additional coumns "downright" and "footer" in html? plz help me out of this problem....thanks
>
you can assign the names as you like. the default is:
colpos name
1 left
0 normal
2 right
3 border
as you can see:
in left pane in area 'tools' select 'configuration'
then Menu: $TCA (tables.php)
and open:
tt_content
-> columns
->colPos
->config
->items
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")
# use this value ---^
);
I think the entry at the end gives the value inserted into the
database-field.
so getting content from column footer has to defined like this:
temp.footercolumn = CONTENT
temp.footercolumn {
table = tt_content
select {
pidInList = this
orderBy = sorting
# and insert the value here ---v
where = colPos = 5
languageField = sys_language_uid
}
}
at the end use this temp-object to replace your marker or similar
:
page.10 = TEMPLATE
page.10.template = FILE
page.10.template.file = ....
page.10.marks.FOOTER < temp.footercolumn
:
Bernd
--
http://www.bernd-wilke.net
More information about the TYPO3-english
mailing list