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
|
type: files
|
||||||
template: image
|
template: image
|
||||||
layout: cardlets
|
layout: cardlets
|
||||||
|
limit: 50
|
||||||
image:
|
image:
|
||||||
ratio: 1/1
|
ratio: 1/1
|
||||||
|
|
|
@ -5,6 +5,8 @@ fields:
|
||||||
en: Image gallery
|
en: Image gallery
|
||||||
fr: Galerie d'images
|
fr: Galerie d'images
|
||||||
type: structure
|
type: structure
|
||||||
|
required: true
|
||||||
|
min: 1
|
||||||
columns:
|
columns:
|
||||||
main_image:
|
main_image:
|
||||||
width: 1/3
|
width: 1/3
|
||||||
|
@ -18,6 +20,7 @@ fields:
|
||||||
en: Main image
|
en: Main image
|
||||||
fr: Image principale
|
fr: Image principale
|
||||||
type: files
|
type: files
|
||||||
|
required: true
|
||||||
query: site.find('media-library').images
|
query: site.find('media-library').images
|
||||||
uploads:
|
uploads:
|
||||||
parent: site.find('media-library')
|
parent: site.find('media-library')
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
type: fields
|
type: fields
|
||||||
fields:
|
fields:
|
||||||
contact_line:
|
info_line:
|
||||||
type: line
|
type: line
|
||||||
cv:
|
cv:
|
||||||
label: CV
|
label: CV
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue