Add limits and required fields to gallery and media sections
This commit is contained in:
parent
6ca4d4d265
commit
f91e8cb2ef
3 changed files with 5 additions and 1 deletions
|
@ -2,5 +2,6 @@ label: Images
|
|||
type: files
|
||||
template: image
|
||||
layout: cardlets
|
||||
limit: 50
|
||||
image:
|
||||
ratio: 1/1
|
||||
|
|
|
@ -5,6 +5,8 @@ fields:
|
|||
en: Image gallery
|
||||
fr: Galerie d'images
|
||||
type: structure
|
||||
required: true
|
||||
min: 1
|
||||
columns:
|
||||
main_image:
|
||||
width: 1/3
|
||||
|
@ -18,6 +20,7 @@ fields:
|
|||
en: Main image
|
||||
fr: Image principale
|
||||
type: files
|
||||
required: true
|
||||
query: site.find('media-library').images
|
||||
uploads:
|
||||
parent: site.find('media-library')
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
type: fields
|
||||
fields:
|
||||
contact_line:
|
||||
info_line:
|
||||
type: line
|
||||
cv:
|
||||
label: CV
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue