I have a structure with a block inside. When i retrieve the structure with
$statements = $page->references()->toStructure();
and i whant to use the block inside with
$statement->text()->toBlocks()
I get the result shown in the attached image ?!?
fields:
image:
extends: sections/fields/attachments/motiv
title:
label:
de: Titel
en: Title
type: text
claim:
label:
de: Kernaussage
en: Claim
type: text
text:
extends: sections/fields/blocks
url:
label:
de: Verlinkung
en: Link
type: url
active:
label:
de: aktiv
en: active
type: toggle
the block field extends an existing definition:
type: blocks
pretty: true
fieldsets:
text:
label: Text
type: group
fieldsets:
- heading
- text
- list
media:
label: Media
type: group
fieldsets:
image:
extends: blocks/image
fields:
image:
image:
back: white
uploads:
template: image-document
- video
code:
label: Code
type: group
fieldsets:
- code
- markdown