pinned investigations (panel)
All checks were successful
Deploy / Deploy to Production (push) Successful in 11s

This commit is contained in:
Julie Blanc 2026-02-19 15:34:10 +01:00
parent cc7c9f5dab
commit 347c45bc22
3 changed files with 21 additions and 7 deletions

View file

@ -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

View file

@ -18,8 +18,6 @@
<div class="col-right">
<?php $latestInvestigations = site()->find('enquetes')->children()->listed()->sortBy('created', 'desc')->limit(5);
foreach ($latestInvestigations as $investigation):
?>

View file

@ -90,11 +90,6 @@
</ul>
</div>
<?php endif ?>
<?php if ($investigation->pinned()->toBool()): ?>
<div class="pin"><?= svg('assets/icons/pin.svg') ?></div>
<?php endif ?>
<a class="link-block" href="<?= $investigation->url() ?>"></a>
</article>
<?php endforeach ?>