[TYPO3-english] include TypoScript according to type (tt_news, tt_content)

Robert Wildling rowild at gmx.net
Sun May 11 14:19:38 CEST 2014


Hi,

I create several new content types (in tt_news at thte moment) via 
ext_tables.php like this:

// add the new type
$TCA['tt_news']['columns']['type']['config']['items'][] = Array('New Page Type',4);

Each of those page types needs a little bit of additional TypoScript for 
selecting its own template file and activating some generic markers. The 
editors shall have the possibiliy to just choose the page type, and 
everything should work out-of-the-box (so no need to implement an 
additional TypoScript file manually).

Is there a way to activate the specific TypoScript according to tt_news 
type? Something like
[globalVar = GP:tt_news|type=4]
[...]

"Type" is neither a get nor post var... any other way to implement that 
functionality?

Thanks for your tipps!
Robert


More information about the TYPO3-english mailing list