Bug #77994

cObject RECORDS - conf property problem with plugins

Added by Stig Nørgaard Færch about 5 years ago. Updated about 5 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Fluid Styled Content
Target version:
-
Start date:
2016-09-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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>

#1

Updated by Wouter Wolters about 5 years ago

  • Assignee deleted (Benni Mack)

Also available in: Atom PDF