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
|
label: Contenu
|
||||||
sections:
|
sections:
|
||||||
investigations: fields/investigations
|
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
|
seo: seo/page
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,6 @@
|
||||||
|
|
||||||
<div class="col-right">
|
<div class="col-right">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php $latestInvestigations = site()->find('enquetes')->children()->listed()->sortBy('created', 'desc')->limit(5);
|
<?php $latestInvestigations = site()->find('enquetes')->children()->listed()->sortBy('created', 'desc')->limit(5);
|
||||||
foreach ($latestInvestigations as $investigation):
|
foreach ($latestInvestigations as $investigation):
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -90,11 +90,6 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?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>
|
<a class="link-block" href="<?= $investigation->url() ?>"></a>
|
||||||
</article>
|
</article>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue