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:
parent
ffcb1a9f2e
commit
9482dfa08c
6 changed files with 108 additions and 80 deletions
|
|
@ -1,8 +1,8 @@
|
|||
name: Carte
|
||||
icon: map
|
||||
fields:
|
||||
map:
|
||||
map:
|
||||
label: Choisir la carte
|
||||
type: pages
|
||||
query: page.parent.parent.children.filterBy('intendedTemplate', 'map')
|
||||
multiple: false
|
||||
query: page.children.filterBy('intendedTemplate', 'map')
|
||||
multiple: false
|
||||
|
|
|
|||
2
public/site/blueprints/fields/blueprint.yml
Normal file
2
public/site/blueprints/fields/blueprint.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
type: headline
|
||||
label: Page "{{ page.blueprint.title }}"
|
||||
|
|
@ -1,38 +1,43 @@
|
|||
title: Géoformat
|
||||
|
||||
columns:
|
||||
main:
|
||||
width: 2/3
|
||||
sections:
|
||||
fields:
|
||||
type: fields
|
||||
fields:
|
||||
subtitle:
|
||||
label: Sous-titre
|
||||
type: text
|
||||
width: 1/2
|
||||
tags:
|
||||
label: Mots-clés
|
||||
type: tags
|
||||
width: 1/2
|
||||
cover:
|
||||
label: Media de couverture
|
||||
type: files
|
||||
multiple: false
|
||||
width: 1/2
|
||||
text:
|
||||
label: Chapeau
|
||||
type: writer
|
||||
pages:
|
||||
label: Chapitres
|
||||
type: pages
|
||||
template: chapitre
|
||||
sidebar:
|
||||
width: 1/3
|
||||
sections:
|
||||
files:
|
||||
label: Fichiers
|
||||
type: files
|
||||
|
||||
|
||||
tabs:
|
||||
contentTab:
|
||||
columns:
|
||||
main:
|
||||
width: 2/3
|
||||
sections:
|
||||
fields:
|
||||
type: fields
|
||||
fields:
|
||||
blueprint: fields/blueprint
|
||||
subtitle:
|
||||
label: Sous-titre
|
||||
type: text
|
||||
width: 1/2
|
||||
tags:
|
||||
label: Mots-clés
|
||||
type: tags
|
||||
width: 1/2
|
||||
cover:
|
||||
label: Media de couverture
|
||||
type: files
|
||||
query: page.coverFiles
|
||||
multiple: false
|
||||
width: 1/2
|
||||
text:
|
||||
label: Chapeau
|
||||
type: writer
|
||||
chapters:
|
||||
label: Chapitres
|
||||
type: pages
|
||||
template: chapter
|
||||
sidebar:
|
||||
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
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ columns:
|
|||
fields:
|
||||
type: fields
|
||||
fields:
|
||||
blueprint: fields/blueprint
|
||||
tags:
|
||||
label: Mots-clés
|
||||
type: tags
|
||||
|
|
|
|||
|
|
@ -1,44 +1,49 @@
|
|||
title: Narrative
|
||||
title: Récit
|
||||
|
||||
columns:
|
||||
main:
|
||||
width: 2/3
|
||||
sections:
|
||||
fields:
|
||||
type: fields
|
||||
fields:
|
||||
blueprint:
|
||||
type: headline
|
||||
label: Page "{{ page.intendedTemplate }}"
|
||||
author:
|
||||
label: Auteur·ice(s)
|
||||
type: text
|
||||
width: 1/2
|
||||
cover:
|
||||
label: Image de couverture
|
||||
tabs:
|
||||
contentTab:
|
||||
label: Contenu
|
||||
columns:
|
||||
main:
|
||||
width: 2/3
|
||||
sections:
|
||||
fields:
|
||||
type: fields
|
||||
fields:
|
||||
blueprint: fields/blueprint
|
||||
author:
|
||||
label: Auteur·ice(s)
|
||||
type: text
|
||||
width: 1/2
|
||||
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
|
||||
multiple: false
|
||||
width: 1/2
|
||||
introduction:
|
||||
label: Introduction
|
||||
type: writer
|
||||
customCss:
|
||||
label: Custom CSS
|
||||
type: code-editor
|
||||
language: css
|
||||
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
|
||||
CSSTab:
|
||||
label: CSS
|
||||
icon: brush
|
||||
fields:
|
||||
customCss:
|
||||
label: Custom CSS
|
||||
type: code-editor
|
||||
language: css
|
||||
help: Custom CSS styling for this narrative's print view
|
||||
theme: monokai
|
||||
size: large
|
||||
|
|
|
|||
15
public/site/blueprints/tabs/files.yml
Normal file
15
public/site/blueprints/tabs/files.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue