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
|
|
@ -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