Set up media library

This commit is contained in:
Paul Nicoué 2025-05-04 18:29:19 +02:00
parent 8352bc22d2
commit b156cb1902
10 changed files with 121 additions and 47 deletions

View file

@ -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' => [