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:
label: Choisir la carte
type: pages
query: page.parent.parent.children.filterBy('intendedTemplate', 'map')
query: page.children.filterBy('intendedTemplate', 'map')
multiple: false

View file

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

View file

@ -1,5 +1,7 @@
title: Géoformat
tabs:
contentTab:
columns:
main:
width: 2/3
@ -7,6 +9,7 @@ columns:
fields:
type: fields
fields:
blueprint: fields/blueprint
subtitle:
label: Sous-titre
type: text
@ -18,21 +21,23 @@ columns:
cover:
label: Media de couverture
type: files
query: page.coverFiles
multiple: false
width: 1/2
text:
label: Chapeau
type: writer
pages:
chapters:
label: Chapitres
type: pages
template: chapitre
template: chapter
sidebar:
width: 1/3
sections:
files:
label: Fichiers
type: files
maps:
label: Cartes
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:
type: fields
fields:
blueprint: fields/blueprint
tags:
label: Mots-clés
type: tags

View file

@ -1,5 +1,8 @@
title: Narrative
title: Récit
tabs:
contentTab:
label: Contenu
columns:
main:
width: 2/3
@ -7,9 +10,7 @@ columns:
fields:
type: fields
fields:
blueprint:
type: headline
label: Page "{{ page.intendedTemplate }}"
blueprint: fields/blueprint
author:
label: Auteur·ice(s)
type: text
@ -22,6 +23,23 @@ columns:
introduction:
label: Introduction
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:
label: Custom CSS
type: code-editor
@ -29,16 +47,3 @@ columns:
help: Custom CSS styling for this narrative's print view
theme: monokai
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