Project

General

Profile

Actions

Bug #105461

closed

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

Added by Karsten Nowak (undkonsorten) 27 days ago. Updated 27 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2024-10-25
Due date:
% Done:

100%

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

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}"/>

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #105355: Example for rendering content with f:cObject for page-content processorResolved2024-10-18

Actions
Actions

Also available in: Atom PDF