Hi,
Is there a way to add a Pages section (for subpages) between two Field sections? Is this possible, or am I doing something wrong?
sections:
fields:
fields:
# Hero section
heroSection:
label: Hero Section
type: headline
headIntro:
label: Head Intro
type: text
workButtonText:
label: Button text
type: text
width: 1/2
workButton:
label: Work Button
type: url
width: 1/2
# My Work section
workSection:
label: My Work
type: headline
published:
width: 2/3
label: Published
type: pages
status: listed
templates: pages
layout: cards
image:
cover: true
inProgress:
width: 1/3
label: In Progress
type: pages
status: draft
templates: pages
layout: list
image:
cover: true
# Clients section
clientSection:
label: Client Section
type: headline
clientIntro:
label: Client Intro
type: text
clientText:
label: Client text
type: textarea
clientGrid:
label: Clients
type: files```
Yes, you can, but the general setup should be like this:
sections:
section_fields_1:
type: fields,
fields:
# fields here
section_pages:
type: pages
section_fields_2:
type: fields
fields:
# fields here
I changed to this:
sections:
section_fields_1:
type: fields
fields:
# Hero section
heroSection:
label: Hero Section
type: headline
headIntro:
label: Head Intro
type: text
workButtonText:
label: Button text
type: text
width: 1/2
workButton:
label: Work Button
type: url
width: 1/2
section_pages:
type: pages
# My Work section
workSection:
label: My Work
type: headline
published:
width: 2/3
label: Published
type: pages
status: listed
templates: pages
layout: cards
image:
cover: true
inProgress:
width: 1/3
label: In Progress
type: pages
status: draft
templates: pages
layout: list
image:
cover: true
section_fields_2:
type: fields
fields:
# Clients section
clientSection:
label: Client Section
type: headline
clientIntro:
label: Client Intro
type: text
clientText:
label: Client text
type: textarea
clientGrid:
label: Clients
type: files
But it gave me the following error for all 3 sections:
Invalid section type for section “section_fields_1”
The following section types are available:
Any ideas?
Make sure the indentation is correct. All sections need to have the same indentation level. `WorkSection is a field, so it needs to be within a fields section. See the outline I posted above.
Perfect, the indentation has been corrected. Sorry for taking up your time but now I have a list-style view of listed and draft subpages together with a section heading “Section_pages”.
I would like 2/3 published card view : 1/3 draft list view. Here’s where Im at, any help?
section_pages:
type: pages
# My Work section
workSection:
label: My Work
type: headline
published:
width: 2/3
label: Published
type: pages
status: listed
templates: pages
layout: cards
image:
cover: true
inProgress:
width: 1/3
label: In Progress
type: pages
status: draft
templates: pages
layout: list
image:
cover: true
Thank you
You need different sections here and your headline in the middle of it doesn’t make sense.
e.g
sections:
published:
type: pages
status: listed
inProgress:
type: pages
status: draft
If you want to have columns, you have to use columns
in your blueprint, please check the documentation and the many examples in the Starterkit:
Sorted it. This takes some getting used to and plenty of back and forth with the docs and here. I appreciate your help and guidance!
Yes, takes some getting used to. But over time you will have your examples setups ready that you can then reuse over and over again.
And one day, there will be a blueprint builder…
1 Like