geoproject-app/public/site/blueprints/pages/narrative.yml
isUnknown 76dee1b074
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 21s
fix: align content field names with blueprints, fix API field calls
Content .txt files:
- narrative.txt (×4): Introduction → Intro
- chapter.txt (×3): Text → Body
- geoformat.txt: Intro → Text
- map.txt: move Text content into Intro field

narrative.json.php:
- parseChapter: $chapter->text() → $chapter->body()
- parseMarker: $marker->text() → $marker->body()
- parseMap: $map->text() → $map->intro()
- narrative root: $page->introduction() → $page->intro()

Also commits Kirby content directory rename (1_cohesion-des-mondes → cohesion-des-mondes)
and new _drafts content.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-26 17:09:51 +01:00

51 lines
1.2 KiB
YAML

title: Récit
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
query: page.coverFiles
text: "{{ file.coverLabel }}"
multiple: false
width: 1/2
intro:
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
language: css
help: Custom CSS styling for this narrative's print view
theme: monokai
size: large