I’m a new Kirby user and I’m trying to create a block for an image gallery where each image can have a size (default or large).
This is the blueprint I’m working with:
# site/blueprints/blocks/gallery.yml
title: Galerie
preview: fields
wysiwyg: true
label: "{{ title }}"
icon: grid
tabs:
content:
label: Inhalt
fields:
headline:
label: Titel
type: text
images:
label: Bilder
type: files
layout: cards
fields:
alt:
label: Alt-Text
type: text
caption:
label: Bildunterschrift
type: text
settings:
extends: tabs/block-settings
As you can see, I’ve tried adding “fields” to the “images” field but the fields aren’t showing up in the panel.
I’ve also read about Files blueprints but they seem to apply only for entire sections of a page.
I feel like I have some concept wrong, can somebody point me in the right direction?
Thanks for your help!