diff --git a/site/blueprints/pages/section.yml b/site/blueprints/pages/section.yml index b31d95e..41e573d 100644 --- a/site/blueprints/pages/section.yml +++ b/site/blueprints/pages/section.yml @@ -6,6 +6,12 @@ tabs: label: Constructeur icon: dashboard fields: + isTitled: + label: Titrée + type: toggle + default: true + help: Affiche le titre de la section. + width: 1/4 isIndexed: label: Indexée type: toggle @@ -15,7 +21,7 @@ tabs: backgroundColor: extends: fields/color label: Couleur de fond - width: 3/4 + width: 2/4 section: label: Section type: layout diff --git a/site/templates/sectioned.php b/site/templates/sectioned.php index 7c44590..7e5fb2b 100644 --- a/site/templates/sectioned.php +++ b/site/templates/sectioned.php @@ -18,7 +18,9 @@ children() as $sectionPage): ?>
backgroundColor()->isNotEmpty() == 'true', ' style="--color: ' . $sectionPage->backgroundColor() . ';"') ?>> -

title() ?>

+ isTitled() != 'false'): ?> +

title() ?>

+ section()->toLayouts() as $layout): ?>