reorganize panel:
- project blueprints : add managers field - projects blueprint : re organize, add 'Vos projets' section based on custom user method - menu : hide dashboard item (useless)
This commit is contained in:
parent
d3e73bc8de
commit
4f60dc91d3
15 changed files with 110 additions and 150 deletions
|
|
@ -1,22 +1,31 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'site' => [
|
||||
'label' => 'Dashboard',
|
||||
'icon' => 'dashboard',
|
||||
// 'site' => [
|
||||
// 'label' => 'Dashboard',
|
||||
// 'icon' => 'dashboard',
|
||||
// 'current' => function (string $current): bool {
|
||||
// // the links of all your custom menu entries
|
||||
// $links = [
|
||||
// 'pages/clients',
|
||||
// 'pages/projects',
|
||||
// 'pages/inspirations',
|
||||
// 'pages/notifications',
|
||||
// 'pages/reunions'
|
||||
// ];
|
||||
// $path = Kirby\Cms\App::instance()->path();
|
||||
// return
|
||||
// $current === 'site' &&
|
||||
// A::every($links, fn ($link) => Str::contains($path, $link) === false);
|
||||
// }
|
||||
// ],
|
||||
'projects' => [
|
||||
'label' => 'Projets',
|
||||
'icon' => 'folder',
|
||||
'link' => 'pages/projects',
|
||||
'current' => function (string $current): bool {
|
||||
// the links of all your custom menu entries
|
||||
$links = [
|
||||
'pages/clients',
|
||||
'pages/projects',
|
||||
'pages/inspirations',
|
||||
'pages/notifications',
|
||||
'pages/reunions'
|
||||
];
|
||||
$path = Kirby\Cms\App::instance()->path();
|
||||
return
|
||||
$current === 'site' &&
|
||||
A::every($links, fn ($link) => Str::contains($path, $link) === false);
|
||||
$path = Kirby\Cms\App::instance()->path();
|
||||
return Str::contains($path, 'pages/projects');
|
||||
}
|
||||
],
|
||||
'clients' => [
|
||||
|
|
@ -28,15 +37,6 @@ return [
|
|||
return Str::contains($path, 'pages/clients');
|
||||
}
|
||||
],
|
||||
'projects' => [
|
||||
'label' => 'Projets',
|
||||
'icon' => 'folder',
|
||||
'link' => 'pages/projects',
|
||||
'current' => function (string $current): bool {
|
||||
$path = Kirby\Cms\App::instance()->path();
|
||||
return Str::contains($path, 'pages/projects');
|
||||
}
|
||||
],
|
||||
'-',
|
||||
'inspirations' => [
|
||||
'label' => 'Inspirations',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue