Translations
Info
All page names need to be in English.
en da  de  fr  it  ja  km  nl  ru  zh

Additional columns in WEB-Page Module

From TYPO3Wiki
Jump to: navigation, search

TCA Overrides

Place this code in an extension inside the file Configuration/TCA/Overrides/tt_content.php:

$GLOBALS['TCA']['tt_content']['columns']['colPos']['config']['items'] = array(
	'3' => array('Kopfzeile', '3'),
	'2' => array('Rechts', '2'),
	'1' => array('Links', '1'),
	'0' => array('Mitte', '0'),
	'4' => array('Fusszeile', '4')
);

Page TSconfig

In your Page TSconfig you have to set this value:

mod.SHARED.colPos_list = 1,0,2,3,4

(added item no. 4)

TypoScript Setup

In order to use the content of that column in a page, you can use this code in your TypoScript setup field:

temp.additionalcolumn = CONTENT
temp.additionalcolumn {
	table = tt_content
	select {
		pidInList = this
		orderBy = sorting
		where = colPos = 4
		languageField = sys_language_uid
	}
}

This will make the content from column number 4 available in temp.additionalcolumn, which you can then include in the output of your page.