From 3de6bf42347b0b375c9c0254ea90439cb3055a1d Mon Sep 17 00:00:00 2001 From: isUnknown Date: Wed, 11 Feb 2026 12:02:12 +0100 Subject: [PATCH] panel > home : add fields --- site/blueprints/pages/home.yml | 11 +++++++++++ site/config/menu.php | 13 ++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/site/blueprints/pages/home.yml b/site/blueprints/pages/home.yml index 8db6323..80acfda 100644 --- a/site/blueprints/pages/home.yml +++ b/site/blueprints/pages/home.yml @@ -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 diff --git a/site/config/menu.php b/site/config/menu.php index 49cf9ec..a9f5b13 100644 --- a/site/config/menu.php +++ b/site/config/menu.php @@ -1,7 +1,7 @@ [ + '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' ]; \ No newline at end of file