Toggle now controls block mode (on = blocks, off = legacy text). Update both blueprint conditions and front template to use isBlockMode. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
68 lines
1.6 KiB
YAML
68 lines
1.6 KiB
YAML
title: Linéaire
|
|
image:
|
|
back: black
|
|
color: white
|
|
icon: bars
|
|
create:
|
|
fields:
|
|
- category
|
|
|
|
tabs:
|
|
contentTab:
|
|
label: Contenu
|
|
sections:
|
|
bodySection:
|
|
label: Corps
|
|
type: fields
|
|
fields:
|
|
subtitle:
|
|
label: Sous-titre
|
|
type: writer
|
|
help: optionnel
|
|
marks:
|
|
- italic
|
|
node: false
|
|
chapo:
|
|
label: Chapo
|
|
extends: fields/body
|
|
help: optionnel
|
|
isBlockMode:
|
|
label: Mode blocs
|
|
type: toggle
|
|
default: true
|
|
width: 1/4
|
|
help: |
|
|
Actif : éditeur en blocs (texte + médias). Inactif : ancien champ texte sans médias, utile pour éditer d'anciens articles uniquement.
|
|
when:
|
|
isHtmlMode: false
|
|
bodyBlocks:
|
|
extends: fields/bodyBlocks
|
|
width: 3/4
|
|
when:
|
|
isHtmlMode: false
|
|
isBlockMode: true
|
|
body:
|
|
extends: fields/body
|
|
help: Anciens champs conservés pour archive (ne pas remplir pour les nouveaux articles). Ce champs ne sera utiliser en front que si le champs "corp" normal est vide.
|
|
width: 3/4
|
|
when:
|
|
isHtmlMode: false
|
|
isBlockMode: false
|
|
htmlBody:
|
|
label: Corps
|
|
type: textarea
|
|
buttons:
|
|
- headlines
|
|
- bold
|
|
- italic
|
|
- link
|
|
when:
|
|
isHtmlMode: true
|
|
|
|
paramsTab: tabs/params
|
|
|
|
metaTab: tabs/meta
|
|
|
|
seo:
|
|
extends: seo/page
|
|
label: Indexation
|