Skip to content

Commit 5052a14

Browse files
committed
[TASK] cObject retrieves raw record automatically
References: TYPO3-Documentation/Changelog-To-Doc#1148 Releases: main, 13.4
1 parent 4b5b6de commit 5052a14

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

Documentation/CodeSnippets/ExtensionConfiguration/ComposerJson.rst.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"type": "typo3-cms-extension",
1111
"description": "Example site package from the site package tutorial",
1212
"require": {
13-
"typo3/cms-core": "^13.3.0|dev-main",
14-
"typo3/cms-fluid-styled-content": "^13.3.0|dev-main"
13+
"typo3/cms-core": "^13.4|dev-main",
14+
"typo3/cms-fluid-styled-content": "^13.4|dev-main"
1515
},
1616
"homepage": "https://github.com/TYPO3-Documentation/TYPO3CMS-Tutorial-SitePackage-Code",
1717
"license": "MIT",

Documentation/CodeSnippets/Fluid/PartialContent.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<f:for each="{records}" as="record">
88
<f:cObject
99
typoscriptObjectPath="{record.mainType}"
10-
data="{record.rawRecord}"
10+
data="{record}"
1111
table="{record.mainType}"
1212
/>
1313
</f:for>

Documentation/ContentMapping/Index.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,6 @@ the TypoScript object :typoscript:`tt_content` here. It is defined in the TypoSc
168168
of the system extension :composer:`typo3/cms-fluid-styled-content`. We included
169169
the site set of that extension in step :ref:`content-mapping-site-set`.
170170

171-
The TypoScript object :typoscript:`tt_content` expects the raw database content
172-
of the row in the table. We therefore pass variable `{record.rawRecord}` to the
173-
table.
174-
175171
`fluid-styled-content` internally uses
176172
Fluid templates and TypoScript with data processors just like the ones we were
177173
defining above. If you desire to change the output of these content elements

Documentation/ContentMapping/_codesnippets/_SectionMainRender.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- <p>The content of the start page is displayed here. [...] </p>
88
+ <f:for each="{content.main.records}" as="record">
99
+ <f:cObject
10-
+ typoscriptObjectPath="{record.mainType}"
10+
+ typoscriptObjectPath="{record}"
1111
+ data="{record.rawRecord}"
1212
+ table="{record.mainType}"
1313
+ />

0 commit comments

Comments
 (0)