Extending blueprints problem

I’m trying to extend my blueprint following this info Reusing & extending blueprints | Kirby CMS but can’t get it to work. In the panel, where the fields should be is an error invalid field type “nuts”. What am I doing wrong? I’ve spent ages on this, so any help gratefully appreciated.

My page blueprint

title: Events page blueprint

fields:
	events:
		label: Events
		type: blocks
		pretty: true
		fieldsets:
			- type: event
				name: Event
				preview: fields
				wysiwyg: true
				fields:
					event_title:
						label: Title
						type: text
					event_date:
						label: Date
						type: text
						help: Don't use 'st' 'nd' 'rd' 'th'
					nuts: fields/button_fields

My blueprint > fields > button_fields.yml

button_text:
	label: Button Text
	type: text
button_link:
	label: Button Link
	type: url
button_email:
	label: Button Email
	type: email
	help: If button link and email are left blank it will link to ....

Okay, turns out this is a ‘group’. Adding

type: group
fields:

to the fields file does the trick. I don’t know why. I’ve already specified fields: in the page blueprint, why are we using it again?

Because nuts: fields/button_fields ist extending one field (nuts) with the content of fields/button_fields.yml. In there, you don’t have the options of a single field defined though, but three separate fields. The special field type group allows this - basically a simple wrapper that allows one field nuts to actually act als multiple fields.

1 Like

Thanks for the explanation.