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

2014-05-11 Thread Robert Wildling
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

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

2014-05-11 Thread Loek Hilgersom
Hey Robert, You'll need an extra query to achieve that, unless you'll be able to access the data from the news records from some place where it's already been retrieved. If that's done in TypoScript then you can store the values in a register to avoid the extra query. With the query it will b

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

2014-05-11 Thread Loek Hilgersom
Oh, sorry, the example is still using some register here, should be this of course: 10 = CASE 10 { //key.data = register:tt_news_type key.cObject = RECORDS key.cObject { tables = tt_news

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

2014-05-12 Thread Robert Wildling
Hey, Loek, good to read you here (and there!)! Thank you very much for your feedback! But I am quite a bit lost here... where would the appropriate tt_news-TS be loaded? The thing is that I want 3 more tt_news types, and each type has it's own templateFile and its own genericmarkers. Of cour

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

2014-05-12 Thread Loek Hilgersom
Hi Robert, You would build an array of alternative tt_news configurations, something like this: 10 = CASE 10 { key.cObject = RECORDS key.cObject { tables = tt_news dontCheckPid = 1 source { data = GP:tx_ttnews|tt_news

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

2014-05-12 Thread Robert Wildling
Thanks so much, Loek! I'll give that a try tomorrow! Or tonight... :-) Kind regards, Robert Am 12.05.14 09:08, schrieb Loek Hilgersom: Hi Robert, You would build an array of alternative tt_news configurations, something like this: 10 = CASE 10 { key.cObject = RECORDS