Can't select file blueprint

Hello again :wave: I want to add an textfield to every file in my page.
My Setup:
site → blueprints → files → type.yml

type.yml:

title: Typeface

fields:
  alt:
    label: Text
    type: text

But there is no text field in my files, and I can’t select a file template.
This page has no blueprint setup yet
So I have to reference the file-blueprint inside my project-blueprint?
The file is a .ttf
I’ve tried .jpg

In this reference its named blueprint → file
https://getkirby.com/docs/reference/panel/samples/file
Here its blueprints → files
https://getkirby.com/docs/reference/panel/blueprints/file
I also renamed everything and reloaded the files.

Thanks!

It should be the /blueprints/files folder.

You have to define the template to be used in your files section, where you upload the files.

For an example, check out the pages/album.yml blueprint; this is the images section from that blueprint:

    sections:
      images:
        type: files
        layout: cards
        template: image
        info: "{{ file.dimensions }}"
        image:
          ratio: 5/4
          cover: true
        min: 1
        size: small

It uses the template option to set the image files blueprint.

There is no way to “select” a blueprint on file upload (like you can when you create a new page).

1 Like