Ich verwende TYPO3 13.4 mit PHP 8.3 und der aktuellen content_blocks.
Aktuell frage ich mich, wie ich in einem Content Element mit dem Typ "Relation" die Ausgabe in der frontend.html hinbekomme. Die fliegt mir um die Ohren mit einem Fehler:
TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException
Tried resolving a template file for controller action "Default->Default" in format ".html", but none of the paths contained the expected template file (Default/Default.html).
Hier auszugsweise die config.yaml:
fields:
- identifier: header
useExistingField: true
- identifier: items
type: Collection
label: Elemente
fields:
- identifier: record_select
type: Relation
label: Inhaltselement
allowed: 'tt_content'
Meine frontend.html:
<f:for each="{data.items}" as="item" iteration="iteration">
<f:if condition="{item.record_select}">
<f:for each="{item.record_select}" as="contentElement">
<f:cObject typoscriptObjectPath="lib.contentElement" data="{contentElement.uid}" />
</f:for>
</f:if>
</f:for>