Import snippet blueprints in default blueprint

Hey,

i try to import more than one snippet blueprint into my default blueprint…
It’s only work with one snippet.

default.yml

title: Default Page
    
extends: snippets/hero
extends: snippets/text

fields:
  headline:
    label: Headline
    type: text
    ...

hero.yml

title: Hero

fields:
  herotext:
    label: Text
    type: text
    ...

text.yml

title: Text

fields:
  sampletext:
    label: Text
    type: text
    ...

What am I doing wrong?
Thank you!

You cannot extend multiple blueprints, but only one in this way. You probably want to set up field groups instead and reuse those.

https://getkirby.com/docs/guide/blueprints/extending-blueprints

2 Likes

Okay.
Thanks for the quick help. I’ll try it.

It works :slight_smile: