I have a page builder block setup in Kirby5.0.0.beta-6, that is causing me issues.
I want to be able to add rows and within those columns that contain the content, headings, text etc., I have managed to do this and can add the content in the panel, but I cannot get the content to display on the frontend. According to ChatGPT my content is not formatted correctly, this is a simple example of content.
----
Pagecontent: [{"content":{"columns":"[{\"content\":{\"width_md\":12,\"offset_md\":0,\"width_lg\":12,\"offset_lg\":0,\"content\":\"[{\\\"content\\\":{\\\"level\\\":\\\"h2\\\",\\\"text\\\":\\\"Heading\\\"},\\\"id\\\":\\\"eda30d1d-ddbd-4130-86a1-d6253be992c9\\\",\\\"isHidden\\\":false,\\\"type\\\":\\\"heading\\\"},{\\\"content\\\":{\\\"text\\\":\\\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\\\"},\\\"id\\\":\\\"aff847ae-be15-4938-87f4-2b3fbe1b393e\\\",\\\"isHidden\\\":false,\\\"type\\\":\\\"textblock\\\"}]\"},\"id\":\"693df4e9-c6bd-4bbb-b62b-243374ef177c\",\"isHidden\":false,\"type\":\"grid-column\"}]"},"id":"99987c1d-96c4-4524-bf46-89147fa6fbc9","isHidden":false,"type":"grid-row"}]
----
This produced by these blueprints
name: Grid Row
icon: grid
fields:
columns:
label: Columns
type: blocks
fieldsets:
- grid-column
name: Grid Column
icon: columns
fields:
width_md:
label: Width (md)
type: range
min: 1
max: 12
step: 1
default: 12
offset_md:
label: Offset (md)
type: range
min: 0
max: 11
step: 1
default: 0
width_lg:
label: Width (lg)
type: range
min: 1
max: 12
step: 1
default: 12
offset_lg:
label: Offset (lg)
type: range
min: 0
max: 11
step: 1
default: 0
content:
label: Content
type: blocks
fieldsets:
- heading
- textblock
- button
- list
Could someone offer guidance on how to correct this please?