map / marker / geoformat / chapter : remove preview panel button and redirect front to narrative - related to #21
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 24s

This commit is contained in:
isUnknown 2026-04-05 11:16:34 +02:00
parent bf877c23d2
commit 8a7d4832f0
9 changed files with 45 additions and 14 deletions

View file

@ -1,4 +1,9 @@
title: Chapitre
buttons:
- open
- settings
- status
- languages
tabs:
contentTab:

View file

@ -1,4 +1,9 @@
title: Géoformat
buttons:
- open
- settings
- status
- languages
tabs:
contentTab:

View file

@ -1,4 +1,9 @@
title: Carte
buttons:
- open
- settings
- status
- languages
columns:
main:

View file

@ -1,5 +1,10 @@
title: Marqueur
icon: location
buttons:
- open
- settings
- status
- languages
tabs:
content:

View file

@ -1,4 +1,9 @@
title: Récit
buttons:
- open
- settings
- status
- languages
tabs:
contentTab:
@ -22,7 +27,7 @@ tabs:
text: "{{ file.coverLabel }}"
multiple: false
width: 1/2
pdf:
pdf:
label: PDF de la publication
type: files
multiple: false

View file

@ -1,4 +1,9 @@
title: Projet
buttons:
- open
- settings
- status
- languages
columns:
main:

View file

@ -1 +1,5 @@
<h1><?= $page->title() ?></h1>
<?php
$redirectedTemplates = ['map', 'marker', 'geoformat', 'chapter'];
if (in_array($page->intendedTemplate(), $redirectedTemplates)) go($page->parents()->findBy('template', 'narrative')->url(), 301);