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()): ?> -
- -