Skip to content

Commit

Permalink
[TASK] cObject retrieves raw record automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
linawolf committed Nov 10, 2024
1 parent 8c43fe7 commit 3f8151f
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 3f8151f

Please sign in to comment.