Add accept option to image blueprint and assign this template to cover field

This commit is contained in:
sonja
2020-12-13 12:02:01 +01:00
committed by Bastian Allgeier
parent b69da9aee4
commit 137700c492
2 changed files with 7 additions and 0 deletions

View File

@@ -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:

View File

@@ -27,6 +27,9 @@ columns:
cover:
type: files
multiple: false
query: page.images
uploads:
template: image
headline:
type: text
placeholder: "{{ page.title }}"