Fields defined in the yml file are no longer showing after renaming the yml file

Hi there,

After renaming my yml file from bett.yml to betten.yml, the fields defined in the yml file are no longer showing in the Kirby panel when I click on a product. It says: This file has no blueprint yet. You can define the setup in /site/blueprints/files/default.yml

The betten.yml file lives in the pages folder which is inside the Blueprints folder.

I deleted the content of the cache folder site/cache but nothing changed. I tried to rename it bett.yml again but the fields are still not showing. Grateful for your advice.

This is the content of the yml file:

title: Betten
num: zero

status:
  draft: true
  listed: true

fields:
  Name:
    label: Produkt Name
    type: text

  Beschreibung:
    label: Beschreibung
    type: text

  Accordiontiteleins:
    label: Accordion Titel Nr. 1
    type: text

  Accordionbeschreibungeins:
    label: Accordion Beschreibung Nr. 1
    type: text

  Accordiontitelzwei:
    label: Accordion Titel Nr. 2
    type: text

  Accordionbeschreibungzwei:
    label: Accordion Beschreibung Nr. 2
    type: text

  Accordiontiteldrei:
    label: Accordion Titel Nr. 3
    type: text

  Accordionbeschreibungdrei:
    label: Accordion Beschreibung Nr. 3
    type: text

  Accordiontitelvier:
    label: Accordion Titel Nr. 4
    type: text

  Accordionbeschreibungvier:
    label: Accordion Beschreibung Nr. 4
    type: text

  Paletteone:
    label: Palette Nr. 1
    type: text

  files:
    label: Bilder
    type: files
    multiple: true # Allow multiple images
    template: image

You have to rename your content files (content/product/bett.txt) accordingly to your blueprint files (content/product/betten.txt)

Filenames matter a lot in Kirby, be careful when you rename things.

1 Like

Legend! That did it! Thank you very much indeed.

I decided to keep the name bett.yml.

In the content folder, the name of the folder containing the different bed products is called betten. Is this fine, or do I need to rename it to bett?

The folder name is derived from your desired slug for the url.

Try it and change the slug in the panel - the folder name will change accordingly. So if you want to call the page example.com/betten it should be called betten

1 Like

Thanks :+1: