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: contentTab:
label: Contenu label: Contenu
icon: page 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 seo: seo/page

View file

@ -1,7 +1,7 @@
<?php <?php
return [ return [
'home' => [ 'dashboard' => [
'label' => 'Dashboard', 'label' => 'Dashboard',
'icon' => 'bolt', 'icon' => 'bolt',
'link' => '/', 'link' => '/',
@ -10,6 +10,16 @@ return [
return Str::contains($path, '/site'); 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' => [ 'database' => [
@ -22,5 +32,6 @@ return [
} }
], ],
'-', '-',
'-',
'users' 'users'
]; ];