diff --git a/site/config/menu.php b/site/config/menu.php
index b2bc0a3..c0c5664 100644
--- a/site/config/menu.php
+++ b/site/config/menu.php
@@ -47,13 +47,13 @@ return [
return Str::contains($path, 'pages/news');
}
],
- 'packages' => [
+ 'dossiers' => [
'label' => 'Dossiers',
'icon' => 'folder',
- 'link' => 'pages/packages',
+ 'link' => 'pages/dossiers',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
- return Str::contains($path, 'pages/packages');
+ return Str::contains($path, 'pages/dossiers');
}
],
'laboratoire' => [
diff --git a/site/snippets/nav.php b/site/snippets/nav.php
index 1d83a7d..aee0784 100644
--- a/site/snippets/nav.php
+++ b/site/snippets/nav.php
@@ -20,7 +20,7 @@ de la vérité et de la justice.
- = kirby()->language() && kirby()->language()->code() === 'en' ? 'About' : 'À propos' ?>
- = t('investigations.title') ?>
- - = t('packages.title') ?>
+ - = t('packages.title') ?>
- = t('impacts.title') ?>
- = t('news.title') ?>
- = t('resources.title') ?>
diff --git a/site/templates/home.php b/site/templates/home.php
index 08ba960..7c35ac7 100644
--- a/site/templates/home.php
+++ b/site/templates/home.php
@@ -14,7 +14,7 @@ $count = max(4, (int)$section->count()->value());
[$seeMoreLabel, $seeMoreUrl] = match($type) {
'investigations' => ['Voir toutes les enquêtes', page('enquetes')->url()],
'impacts' => ['Voir tous les impacts', page('impacts')->url()],
- 'packages' => ['Voir tous les dossiers', page('packages')->url()],
+ 'dossiers' => ['Voir tous les dossiers', page('dossiers')->url()],
'projects' => ['Voir tous les projets', site()->find('laboratoire')->url()],
'news' => ['Voir toutes les brèves', page('news')->url()],
default => ['Voir tout', '/'],
@@ -183,9 +183,9 @@ $count = max(4, (int)$section->count()->value());
-
+
- children()->listed()->limit($count) as $package):
+ children()->listed()->limit($count) as $package):
$cover = $package->cover()->toFile();
$investigationsCount = $package->linkedContent()->toPages()->count();
$impactsCount = $package->linkedImpacts()->toPages()->count();
diff --git a/site/templates/investigation.php b/site/templates/investigation.php
index ddbc740..678290c 100644
--- a/site/templates/investigation.php
+++ b/site/templates/investigation.php
@@ -391,7 +391,7 @@ if ($relatedInvestigations->isEmpty()) {
find('packages');
+$packagesParent = site()->find('dossiers');
$package = $packagesParent
? $packagesParent->children()->listed()->filter(fn($p) => $p->linkedContent()->toPages()->has($page))->first()
: null;