Add default file blueprint with alt and caption fields

- Create default.yml blueprint for all files
- Add caption (legend) and alt (accessibility) fields
- Update image block blueprint: remove alt/caption fields
- Add help text in image block to remind filling these in image blueprint
- Improve image block UI: cards layout, huge size

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-02-09 19:27:03 +01:00
parent 561932724b
commit a01323be39
2 changed files with 15 additions and 10 deletions

View file

@ -7,21 +7,15 @@ fields:
type: files
query: model.images
multiple: false
layout: cards
size: huge
image:
back: black
uploads:
template: blocks/image
alt:
label: field.blocks.image.alt
type: text
icon: title
help: Description de limage, utile si elle ne saffiche pas. Écrivez comme si vous expliquiez l'image à quelqu'un par téléphone.
caption:
label: field.blocks.image.caption
type: writer
icon: text
inline: true
help: Pensez à **ajouter le texte alternatif et la légende** en cliquant sur l'image ci-dessus
link:
label: field.blocks.image.link
type: text
icon: url
help: Accessible au clic sur l'image

View file

@ -0,0 +1,11 @@
title: Fichier
fields:
caption:
label: Légende
type: text
help: Légende affichée sous l'image
alt:
label: Texte alternatif
type: text
help: Description de l'image pour l'accessibilité et le SEO