[TYPO3] new content column

Bernd Wilke xoonsji02 at sneakemail.com
Tue May 9 17:51:26 CEST 2006


On Tue, 09 May 2006 09:19:16 +0200, Andrea Giorgini wrote
with subject "[TYPO3] new content column":

> Hi all,
> normally we have in the BE the columns left, normal and right.
> I would like to add another one, is that possible?

in the directory typo3conf is a file extTables.php

there you have to insert teh following:

----------------------------------------------------------------------
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")
	); 
----------------------------------------------------------------------

then you open localconf.php and insert this line:
----------------------------------------------------------------------
	$typo_db_extTableDef_script = 'extTables.php'; 
----------------------------------------------------------------------


you get the content for this further columns with this typoscript:
----------------------------------------------------------------------
	temp.addcolumn = CONTENT
	temp.addcolumn {
		table = tt_content
		select {
			pidInList = this
			orderBy = sorting
			where = colPos = <column-no>
		}
	}
----------------------------------------------------------------------

Bernd

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



More information about the TYPO3-english mailing list