Add limits and required fields to gallery and media sections

This commit is contained in:
Paul Nicoué 2025-06-13 14:59:32 +02:00
parent 6ca4d4d265
commit f91e8cb2ef
3 changed files with 5 additions and 1 deletions

View file

@ -2,5 +2,6 @@ label: Images
type: files
template: image
layout: cardlets
limit: 50
image:
ratio: 1/1

View file

@ -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')

View file

@ -1,6 +1,6 @@
type: fields
fields:
contact_line:
info_line:
type: line
cv:
label: CV