Issue Bug Closed

#77994cObject RECORDS - conf property problem with plugins

Stig Nørgaard Færch 09/19/16, 13:58 updated 06/07/24, 06:19

Description

This is probably also true for cObject CONTENT

If you want to modify rendering of a tt_content based content rendered by RECORDS, it will not work if you base it upon the tt_content cObject:

For example:
test = RECORDS
test.source = {someId}
test.tables = tt_content
test.conf.tt_content < tt_content
test.conf.tt_content.list.20.cal_controller.some_property = 123

I think the reason is the way the plugin it self is rendered with fluid_styled_content here:
/var/www/typo3sources/typo3_src-7.6.7/typo3/sysext/fluid_styled_content/Resources/Private/Templates/List.html

I found another way which works:

tt_content.list.20 = CASE
tt_content.list.20.key.field = list_type
tt_content.list.variables {
    plugin = < tt_content.list.20
}

and then add the {plugin} variable to the above mentioned template instead of using the f:cObject viewhelper:

<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="HeaderContentFooter" />

<f:section name="content">
    {plugin -> f:format.raw()}
</f:section>
</html>

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.