Hello,
I just started exploring Kirby v3, and I have to say, I love it!
There is one problem though that I can’t figure out.
We structure our pages into components, where each component has its blueprint that consists of multiple fields. This works fine. The problem arises when I want to use this component blueprint multiple times.
So for the sake of this example I created button.yml
blueprint in site/blueprints/components
that looks as follows:
label: Button
type: group
fields:
label:
label: Label
type: text
width: 1/3
content:
label: Link
type: url
width: 1/3
style:
label: style
type: select
options:
primary: Primary
secondary: Secondary
link: Link
width: 1/3
I then want to use this button inside my home.yml
blueprint in site/blueprints/pages
in each tab once:
title: Home
tabs:
tab1:
label: First Tab
fields:
button1: components/button
tab2:
label: Second Tab
fields:
button2: components/button
This works for the first tab which renders three fields for label
, link
and style
. But on second tab I get three error messages -
The field name "label" already exists in your blueprint.
The field name "content" already exists in your blueprint.
The field name "style" already exists in your blueprint.
Did somebody run into similar use-case, how did you manage to solve this?
Thanks for all the help!