Issue Bug Closed

#105461Improve example for rendering content with f:cObject for page-content processor

Karsten Nowak (undkonsorten) 10/25/24, 08:47 updated 12/02/25, 14:32

Description

Current example in the Changelogs use {record.fullType} in the typoScriptObjectPath:

<f:cObject typoscriptObjectPath="{record.fullType}" table="{record.mainType}" data="{record.rawRecord}"/>

With this code rendering of the whole page is breaking by an exception that the TypoScript object can’t be found if no TypoScript for the CType exists.

Better using {record.mainType} (normally tt_content)

<f:cObject typoscriptObjectPath="{record.mainType}" table="{record.mainType}" data="{record.rawRecord}"/>

Reviews 2

History 310

  1. Karsten Nowak (undkonsorten) commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2024-10-25T16:30:07+00:00" > 10/25/24, 16:30 </span>

    Applied in changeset commit:e7d2440be879ae9fde8a43ef70dc2ee895d85559.