Skip to content

Commit

Permalink
[TASK] cObject retrieves raw record automatically (#1432)
Browse files Browse the repository at this point in the history
Resolves: TYPO3-Documentation/TYPO3CMS-Tutorial-SitePackage#239
Releases: main, 13.4

Co-authored-by: lina.wolf <[email protected]>
  • Loading branch information
github-actions[bot] and linawolf authored Nov 18, 2024
1 parent 221ad66 commit 301c4d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions Documentation/DataProcessing/PageContentFetchingProcessor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ or render it your self.
`{contentElement.fullType}`
Is composed of "tt_content.[CType]". For a content element of type text it
contains "tt_content.text".
`{contentElement.rawRecord}`
Contains an array with the raw row from the database. As the
:typoscript:`tt_content` TypoScript object expects the raw data as input
you should use `{contentElement.rawRecord}` in combination with the
CObject ViewHelper.

The :ref:`backend layout <t3coreapi:be-layout>` is defined like this:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h2>{contentElement.header}</h2>
<f:cObject
typoscriptObjectPath="{contentElement.mainType}"
table="{contentElement.mainType}"
data="{contentElement.rawRecord}"
data="{contentElement}"
/>
</f:for>
</main>
Expand Down

0 comments on commit 301c4d6

Please sign in to comment.