Is it possible to “nest” sections in Kirby 3 blueprints?
I have 1 blueprint and and I’m trying to tidy the sections in it by grouping them together. But I’m stuck and I’m getting errors (Cannot use a scalar value as an array
).
Basically what i’m trying to achieve:
title: Some page
tabs:
content:
label: Content
icon: text
sections:
hero:
type: fields
fields:
Herotitle:
label: Hero title
type: text
required: true
Herobgimage:
label: Hero background image
type: files
layout: cards
size: small
multiple: false
width: 1/4
required: true
Herotext:
label: Hero text
type: textarea
width: 3/4
required: true
secondsection:
type: fields
fields:
somedemofielda:
label: Demo field A
type: text
somedemofieldb:
label: Demo field B
type: textarea
thirdsection:
type: fields
fields:
somedemofieldc:
label: Demo field C
type: text
somedemofieldb:
label: Demo field D
type: textarea
seo:
label: SEO metadata
icon: search
sections:
seo:
extends: sections/seo-meta
files:
label: Files
icon: 🗃
sections:
files:
type: files
And bonus points for showing me how I can setup columns in those sections
Thx!