geoformat > chapitre / map > marker */ // Collect all subpages for lateral navigation $original = page($page->originalUri()); $subpages = $original->children()->listed(); $navItems = []; foreach ($subpages as $subpage) { $item = [ 'id' => $subpage->uid(), 'title' => $subpage->title()->value(), 'template' => $subpage->intendedTemplate()->name(), 'children' => [], ]; // Pour les cartes : inclure les marqueurs comme sous-items de navigation if ($subpage->intendedTemplate()->name() === 'map') { foreach ($subpage->children()->listed()->filterBy('intendedTemplate', 'marker') as $mk) { $item['children'][] = [ 'id' => $mk->uid(), 'title' => $mk->title()->value(), ]; } } $navItems[] = $item; } ?> <?= e($original->isHomePage() != true, $original->title() . ' – ') . $site->title() ?> customCss()->isNotEmpty()): ?> user()): ?>
cover()->isNotEmpty() && $cover = $original->cover()->toFile()): ?>

title()) ?>

author()->isNotEmpty()): ?>

Par author()) ?>

introduction()->isNotEmpty()): ?>
introduction() ?>
intendedTemplate()->name(); ?>

title()) ?>

tags()->isNotEmpty()): ?>
tags()->split(',') as $tag): ?>
text()->isNotEmpty()): ?>
text() ?>
children()->listed()->filterBy('intendedTemplate', 'marker'); $mapId = 'map-' . $subpage->uid(); ?>
files()->isNotEmpty()): ?>
files() as $file): ?> filename()) ?>
isNotEmpty()): ?>
cover()->isNotEmpty() && $mCover = $marker->cover()->toFile()): ?>
<?= html($marker->title()) ?>

title()) ?>

text()->isNotEmpty()): ?>
text()->toBlocks() as $block): ?>
cover()->isNotEmpty() && $gCover = $subpage->cover()->toFile()): ?>

title()) ?>

subtitle()->isNotEmpty()): ?>

subtitle()) ?>

tags()->isNotEmpty()): ?>
tags()->split(',') as $tag): ?>
text()->isNotEmpty()): ?>
text() ?>
children()->listed()->filterBy('intendedTemplate', 'chapitre'); $chapCount = $chapitres->count(); if ($chapCount > 0): ?> 1): ?>
Chapitre

title()) ?>

text()->toBlocks() ?>