From e4a04cd127458fd3f75b378a06e5157dde2e303a Mon Sep 17 00:00:00 2001 From: isUnknown Date: Sat, 21 Mar 2026 17:03:35 +0100 Subject: [PATCH] rename isArchiveMode to isBlockMode with inverted logic 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 --- site/blueprints/pages/linear.yml | 11 ++++++----- site/templates/linear.php | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/site/blueprints/pages/linear.yml b/site/blueprints/pages/linear.yml index d295656..d1b2483 100644 --- a/site/blueprints/pages/linear.yml +++ b/site/blueprints/pages/linear.yml @@ -26,12 +26,13 @@ tabs: label: Chapo extends: fields/body help: optionnel - isArchiveMode: - label: Mode archive + isBlockMode: + label: Mode blocs type: toggle + default: true width: 1/4 help: | - Actif : l'ancien champ body sera affiché dans le panel (texte sans médias). Utile pour éditer d'anciens articles uniquement. + 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: @@ -39,14 +40,14 @@ tabs: width: 3/4 when: isHtmlMode: false - isArchiveMode: 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 - isArchiveMode: true + isBlockMode: false htmlBody: label: Corps type: textarea diff --git a/site/templates/linear.php b/site/templates/linear.php index 1507acf..85a82f4 100644 --- a/site/templates/linear.php +++ b/site/templates/linear.php @@ -33,7 +33,7 @@ isHtmlMode()->isTrue()): ?> htmlBody()->kt() ?> - bodyBlocks()->isNotEmpty()): ?> + isBlockMode()->isTrue()): ?> bodyWithAnchors() ?> body() ?>