Hi, I noticed that 2.5.0 brought field groups for Global Field Definitions. I am able to extend a field and it’s working nicely, but it wasn’t clear how to use them more than once or if it’s even possible. For example:
# /site/blueprints/fields/section.yml
type: group
fields:
section_headline:
label: Section
type: headline
section_title:
label: Title
type: text
width: 1/2
section_image:
label: Image
type: image
width: 1/2
section_markup:
label: Content
type: markdown
section_button_text:
label: Button Text
type: text
width: 1/2
section_button_url:
label: Button URL
type: url
width: 1/2
section_layout:
label: Section Layout
type: radio
options:
left: Image Left
right: Image Right
none: No Image
default: 'none'
width: 1/3
section_animation_direction:
label: Animation Direction
type: radio
options:
left: Left
right: Right
none: None
default: 'none'
width: 1/3
section_class:
label: Section background
type: radio
options:
section-def: White
section-default: Gray
default: section-def
width: 1/3
and I want to use this in my blueprint like so:
title: Home
fields:
title:
label: Title
type: text
section_1:
extends: section
fields:
section_headline:
label: Section 1
section_2:
extends: section
fields:
section_headline:
label: Section 2
If this is not possible, please consider this as a suggestion. Thanks
Peter