refactor: restructure blueprints with tabs and shared fields

Reorganize narrative, geoformat, chapter, project and map blueprints
to use tabs layout. Add shared blueprint fields and files tab partials.
Update map block query for new page hierarchy.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-02-25 15:00:50 +01:00
parent ffcb1a9f2e
commit 9482dfa08c
6 changed files with 108 additions and 80 deletions

View file

@ -4,5 +4,5 @@ fields:
map: map:
label: Choisir la carte label: Choisir la carte
type: pages type: pages
query: page.parent.parent.children.filterBy('intendedTemplate', 'map') query: page.children.filterBy('intendedTemplate', 'map')
multiple: false multiple: false

View file

@ -0,0 +1,2 @@
type: headline
label: Page "{{ page.blueprint.title }}"

View file

@ -1,5 +1,7 @@
title: Géoformat title: Géoformat
tabs:
contentTab:
columns: columns:
main: main:
width: 2/3 width: 2/3
@ -7,6 +9,7 @@ columns:
fields: fields:
type: fields type: fields
fields: fields:
blueprint: fields/blueprint
subtitle: subtitle:
label: Sous-titre label: Sous-titre
type: text type: text
@ -18,21 +21,23 @@ columns:
cover: cover:
label: Media de couverture label: Media de couverture
type: files type: files
query: page.coverFiles
multiple: false multiple: false
width: 1/2 width: 1/2
text: text:
label: Chapeau label: Chapeau
type: writer type: writer
pages: chapters:
label: Chapitres label: Chapitres
type: pages type: pages
template: chapitre template: chapter
sidebar: sidebar:
width: 1/3 width: 1/3
sections: sections:
files: maps:
label: Fichiers label: Cartes
type: files type: pages
template: map
help: Créez des cartes ici avant de pouvoir les ajouter dans un bloc ou en couverture.
filesTab: tabs/files

View file

@ -7,6 +7,7 @@ columns:
fields: fields:
type: fields type: fields
fields: fields:
blueprint: fields/blueprint
tags: tags:
label: Mots-clés label: Mots-clés
type: tags type: tags

View file

@ -1,5 +1,8 @@
title: Narrative title: Récit
tabs:
contentTab:
label: Contenu
columns: columns:
main: main:
width: 2/3 width: 2/3
@ -7,9 +10,7 @@ columns:
fields: fields:
type: fields type: fields
fields: fields:
blueprint: blueprint: fields/blueprint
type: headline
label: Page "{{ page.intendedTemplate }}"
author: author:
label: Auteur·ice(s) label: Auteur·ice(s)
type: text type: text
@ -22,6 +23,23 @@ columns:
introduction: introduction:
label: Introduction label: Introduction
type: writer type: writer
parts:
label: Parties
type: pages
template:
- map
- geoformat
info: "{{ page.blueprint.title }}"
sidebar:
width: 1/3
sections:
files:
label: Fichiers
type: files
CSSTab:
label: CSS
icon: brush
fields:
customCss: customCss:
label: Custom CSS label: Custom CSS
type: code-editor type: code-editor
@ -29,16 +47,3 @@ columns:
help: Custom CSS styling for this narrative's print view help: Custom CSS styling for this narrative's print view
theme: monokai theme: monokai
size: large size: large
pages:
label: Pages
type: pages
template:
- map
- geoformat
info: "{{ page.intendedTemplate }}"
sidebar:
width: 1/3
sections:
files:
label: Fichiers
type: files

View file

@ -0,0 +1,15 @@
label: Fichiers
icon: attachment
columns:
- width: 1/4
fields:
manageFilesInfo:
label: false
type: info
text: À droite, tous les fichiers que stocke la page. Pensez à supprimer les fichiers inutilisés éviter de surcharger inutilement le serveur.
- width: 3/4
sections:
filesSection:
label: Fichiers
type: files