From 347c45bc2232902f89976e486f0058ba467dc77b Mon Sep 17 00:00:00 2001 From: Julie Blanc Date: Thu, 19 Feb 2026 15:34:10 +0100 Subject: [PATCH] pinned investigations (panel) --- site/blueprints/pages/investigations.yml | 21 +++++++++++++++++++++ site/templates/home.php | 2 -- site/templates/investigations.php | 5 ----- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/site/blueprints/pages/investigations.yml b/site/blueprints/pages/investigations.yml index d2d73cc..1edbf16 100644 --- a/site/blueprints/pages/investigations.yml +++ b/site/blueprints/pages/investigations.yml @@ -5,4 +5,25 @@ tabs: label: Contenu sections: investigations: fields/investigations + highlightTab: + label: Mise en avant + icon: star + fields: + pinnedInvestigations: + label: Enquêtes pinnées + type: pages + query: page('enquetes').children.listed + multiple: true + layout: list + text: "{{ page.title }}" + info: "{{ page.incidentDate }}" + superPinnedInvestigation: + label: Super pin (home) + type: pages + query: page('enquetes').children.listed + multiple: false + max: 1 + layout: list + text: "{{ page.title }}" + info: "{{ page.incidentDate }}" seo: seo/page diff --git a/site/templates/home.php b/site/templates/home.php index ef492fa..b02f74d 100644 --- a/site/templates/home.php +++ b/site/templates/home.php @@ -18,8 +18,6 @@
- - find('enquetes')->children()->listed()->sortBy('created', 'desc')->limit(5); foreach ($latestInvestigations as $investigation): ?> diff --git a/site/templates/investigations.php b/site/templates/investigations.php index 0770195..35b1004 100644 --- a/site/templates/investigations.php +++ b/site/templates/investigations.php @@ -90,11 +90,6 @@
- -pinned()->toBool()): ?> -
- -