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:
parent
561932724b
commit
a01323be39
2 changed files with 15 additions and 10 deletions
|
|
@ -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 l’image, utile si elle ne s’affiche 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
|
||||
|
|
|
|||
11
site/blueprints/files/default.yml
Normal file
11
site/blueprints/files/default.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue