panel > home : add fields
All checks were successful
Deploy / Deploy to Production (push) Successful in 12s
All checks were successful
Deploy / Deploy to Production (push) Successful in 12s
This commit is contained in:
parent
c8492cd27e
commit
3de6bf4234
2 changed files with 23 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue