Add accept option to image blueprint and assign this template to cover field
This commit is contained in:
@@ -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
|
# 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.
|
# 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
|
# More about file blueprints: https://getkirby.com/docs/reference/panel/blueprints/file
|
||||||
|
|
||||||
|
accept:
|
||||||
|
type: image
|
||||||
|
|
||||||
columns:
|
columns:
|
||||||
- width: 1/2
|
- width: 1/2
|
||||||
sections:
|
sections:
|
||||||
|
@@ -27,6 +27,9 @@ columns:
|
|||||||
cover:
|
cover:
|
||||||
type: files
|
type: files
|
||||||
multiple: false
|
multiple: false
|
||||||
|
query: page.images
|
||||||
|
uploads:
|
||||||
|
template: image
|
||||||
headline:
|
headline:
|
||||||
type: text
|
type: text
|
||||||
placeholder: "{{ page.title }}"
|
placeholder: "{{ page.title }}"
|
||||||
|
Reference in New Issue
Block a user