pinned investigations (panel)
All checks were successful
Deploy / Deploy to Production (push) Successful in 11s
All checks were successful
Deploy / Deploy to Production (push) Successful in 11s
This commit is contained in:
parent
cc7c9f5dab
commit
347c45bc22
3 changed files with 21 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -18,8 +18,6 @@
|
|||
|
||||
<div class="col-right">
|
||||
|
||||
|
||||
|
||||
<?php $latestInvestigations = site()->find('enquetes')->children()->listed()->sortBy('created', 'desc')->limit(5);
|
||||
foreach ($latestInvestigations as $investigation):
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -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 ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue