I’m building my first site with Kirby and am working through making templates. Whenever I try to add more textareas to my page’s panel, I get a “Error: The field cannot be extended “textarea””
Here’s a look at my YML file:
title: Home
pages: true
fields:
title:
label: Title
type: text
line:
type: line
subhead:
label: Subhead
type: text
line:
type: line
text1:
label: Body
type: textarea
line:
type: line
text2:
label: Experience
type: textarea
Welcome to Kirby
Yaml is sensitive to indentation, and the names of all fields must be unique. Should look like this:
title: Home
pages: true
fields:
title:
label: Title
type: text
lineone:
type: line
text1:
label: Body
type: textarea
linetwo:
type: line
...
By the way, you can change the width of the fields and create grids (ie: multiple fields in a row), which might make more sense than drawing lines between them. See here. You can also add icons to the fields.
Also, if you have a set of fields you will use in other blueprints, you can define them as Global Fields to save retyping them in multiple blueprints.
Additionally, you can’t have multiple fields with the same name, make sure that all your line
fields have different names.
Edit: the post above was edited to include this information.