Set up media library
This commit is contained in:
parent
8352bc22d2
commit
b156cb1902
10 changed files with 121 additions and 47 deletions
|
@ -3,9 +3,35 @@
|
|||
return [
|
||||
// Kirby configuration settings
|
||||
'panel' => [
|
||||
'language' => 'fr',
|
||||
'css' => 'build/panel.css',
|
||||
'install' => true,
|
||||
'language' => 'fr',
|
||||
'menu' => [
|
||||
'site' => [
|
||||
'current' => function (string $current): bool { // Override default menu entry highlighting
|
||||
$links = [ // Links of all custom menu entries
|
||||
'pages/media-library',
|
||||
];
|
||||
$path = Kirby\Cms\App::instance()->path();
|
||||
return $current === 'site' && A::every($links, fn ($link) => Str::contains($path, $link) === false);
|
||||
},
|
||||
],
|
||||
'-',
|
||||
'media-library' => [
|
||||
'icon' => 'images',
|
||||
'label' => [
|
||||
'en' => 'Media library',
|
||||
'fr' => 'Médiathèque',
|
||||
],
|
||||
'link' => 'pages/media-library',
|
||||
'current' => function (string $current): bool { // Override default menu entry highlighting
|
||||
$path = Kirby\Cms\App::instance()->path();
|
||||
return Str::contains($path, 'pages/media-library');
|
||||
},
|
||||
],
|
||||
'users',
|
||||
'system',
|
||||
]
|
||||
],
|
||||
// Sitemapper plugin options
|
||||
'kirbyzone.sitemapper' => [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue