I’m going a little crazy here. I have some experience with Wordpress and custom fields as well as other CMS’s content types (blueprint) editors. But I’m losing my mind with Kirby. It seems like every tiny little error will result in me losing all fields. I’m simply trying to have two columns, one being a sidebar. But the moment I edit anything in the current blueprint it seems like I only get errors (“No fields yet”).
I’m using Visual Studio Code, I use Cmmd + ] to change all indentation if I add columns or sections. But even if I copy the example snippet from Kirby:
columns:
- width: 2/3
fields:
subtitle:
type: text
blocks:
type: blocks
- width: 1/3
fields:
published:
type: date
author:
type: users
max: 1
I will still get the same error! What could I possible be doing wrong? I try changing the “levels” of the entire snippet, keeping its hierarchy, but nothing changes.
The blueprint I have that does work is this:
title: Article
preset: page
pages: false
files: false
icon: book
template: article
fields:
author:
label: Author
placeholder: Author
type: text
width: 1/4
date:
label: Date
type: date
width: 1/4
default: today
tags:
label: Tags
type: tags
width: 1/4
options:
type: query
query: page.siblings.pluck("tags", ",", true)
link:
type: link
label: Related
width: 1/4
options:
- page
description:
width: 1/2
label: Description
type: textarea
size: small
biography:
width: 1/2
label: Biography
type: textarea
size: small
slices:
label: Content
type: blocks
fieldsets:
- image
- text
- heading
- quote
And the tiniest adjustments like this
title: Article
preset: page
pages: false
files: false
icon: book
template: article
columns:
- width: 2/3
fields:
author:
label: Author
placeholder: Author
type: text
width: 1/4
date:
label: Date
type: date
width: 1/4
default: today
tags:
label: Tags
type: tags
width: 1/4
options:
type: query
query: page.siblings.pluck("tags", ",", true)
link:
type: link
label: Related
width: 1/4
options:
- page
description:
width: 1/2
label: Description
type: textarea
size: small
biography:
width: 1/2
label: Biography
type: textarea
size: small
slices:
label: Content
type: blocks
fieldsets:
- image
- text
- heading
- quote
- width: 2/3
extra:
label: extra
type: textarea
size: small
Will again cause the same error…Nothing shows up, just the error message, once again.
I’m not sure what I’m doing wrong or if I should have some formatting help from any type of VSC extension…I just feel like making a markdown blueprint is walking on eggshells and usually this part of making a website is one of my favourite ones. I’m mostly focused on front-end and right now creating the website structure is taking me so much longer than anticipated and I really need to move on.
This is my second kirby website and I accepted defeat while making the first one and just had fairly simple blueprints but I’d like to figure this one out this time if I plan on continuing using Kirby. Any help, tips (specifically about this blueprint but also just general advice) would be much appreciated!