Question

In TYPO3 6.1, how do I get the tsconfig for the tx_news news extension to work?

I try to add selectable layouts to news items:

tx_news.templateLayouts {
        1 = A custom layout
        99 = LLL:fileadmin/somelocallang/locallang.xml:someTranslation
}

This should add the new Layout to the Type field, as in:

typo3 news backend

or did I get that wrong? Where can that new custom layout be selected?

Also, I'm trying to prefill fields in flexforms (when a new plugin is inserted):

TCEFORM.tt_content.pi_flexform.tx_news.sDEF.categoryConjunction = and

But it does not work yet.

How can this be done?

Was it helpful?

Solution

With tx_news.templateLayouts you override the flexform for the news plugin you insert on a page, not for a news record.

Your second code looks almost right, but you forgot settings: TCEFORM.tt_content.pi_flexform.tx_news.sDEF.settings.categoryConjunction = and

And even though this code is right, it will not work because of a bug with flexform fields that have a dot in their name (this is just stupid). I think the only way to cleanly modify the flexform, is to write a small extension which overrides the default news flexform.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top