From 137700c492b88c542aed0f57f57dfee0872848ba Mon Sep 17 00:00:00 2001 From: sonja Date: Sun, 13 Dec 2020 12:02:01 +0100 Subject: [PATCH] Add accept option to image blueprint and assign this template to cover field --- site/blueprints/files/image.yml | 4 ++++ site/blueprints/pages/album.yml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/site/blueprints/files/image.yml b/site/blueprints/files/image.yml index df023a2..2514902 100644 --- a/site/blueprints/files/image.yml +++ b/site/blueprints/files/image.yml @@ -6,6 +6,10 @@ title: Image # In addition to the fields defined in this example blueprint, you can also set what type of file is acceptable # when this blueprint is used, which allows you to control what users can upload. # More about file blueprints: https://getkirby.com/docs/reference/panel/blueprints/file + +accept: + type: image + columns: - width: 1/2 sections: diff --git a/site/blueprints/pages/album.yml b/site/blueprints/pages/album.yml index 9f188f1..69730ce 100644 --- a/site/blueprints/pages/album.yml +++ b/site/blueprints/pages/album.yml @@ -27,6 +27,9 @@ columns: cover: type: files multiple: false + query: page.images + uploads: + template: image headline: type: text placeholder: "{{ page.title }}"