panel > home : add fields
All checks were successful
Deploy / Deploy to Production (push) Successful in 12s

This commit is contained in:
isUnknown 2026-02-11 12:02:12 +01:00
parent c8492cd27e
commit 3de6bf4234
2 changed files with 23 additions and 1 deletions

View file

@ -4,4 +4,15 @@ tabs:
contentTab:
label: Contenu
icon: page
fields:
mainBaseline:
label: Baseline
type: text
help: À gauche des enquêtes.
width: 1/2
impactsBaseline:
label: Phrase d'introduction des impacts
type: text
help: À gauche des impacts.
width: 1/2
seo: seo/page

View file

@ -1,7 +1,7 @@
<?php
return [
'home' => [
'dashboard' => [
'label' => 'Dashboard',
'icon' => 'bolt',
'link' => '/',
@ -10,6 +10,16 @@ return [
return Str::contains($path, '/site');
}
],
'-',
'home' => [
'label' => 'Accueil',
'icon' => 'home',
'link' => 'pages/home',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/home');
}
],
'-'
,
'database' => [
@ -22,5 +32,6 @@ return [
}
],
'-',
'-',
'users'
];