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,38 +1,43 @@
title: Géoformat title: Géoformat
columns: tabs:
main: contentTab:
width: 2/3 columns:
sections: main:
fields: width: 2/3
type: fields sections:
fields: fields:
subtitle: type: fields
label: Sous-titre fields:
type: text blueprint: fields/blueprint
width: 1/2 subtitle:
tags: label: Sous-titre
label: Mots-clés type: text
type: tags width: 1/2
width: 1/2 tags:
cover: label: Mots-clés
label: Media de couverture type: tags
type: files width: 1/2
multiple: false cover:
width: 1/2 label: Media de couverture
text: type: files
label: Chapeau query: page.coverFiles
type: writer multiple: false
pages: width: 1/2
label: Chapitres text:
type: pages label: Chapeau
template: chapitre type: writer
sidebar: chapters:
width: 1/3 label: Chapitres
sections: type: pages
files: template: chapter
label: Fichiers sidebar:
type: files width: 1/3
sections:
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: 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,44 +1,49 @@
title: Narrative title: Récit
columns: tabs:
main: contentTab:
width: 2/3 label: Contenu
sections: columns:
fields: main:
type: fields width: 2/3
fields: sections:
blueprint: fields:
type: headline type: fields
label: Page "{{ page.intendedTemplate }}" fields:
author: blueprint: fields/blueprint
label: Auteur·ice(s) author:
type: text label: Auteur·ice(s)
width: 1/2 type: text
cover: width: 1/2
label: Image de couverture cover:
label: Image de couverture
type: files
multiple: false
width: 1/2
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 type: files
multiple: false CSSTab:
width: 1/2 label: CSS
introduction: icon: brush
label: Introduction fields:
type: writer customCss:
customCss: label: Custom CSS
label: Custom CSS type: code-editor
type: code-editor language: css
language: css 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