Upgrade to 3.6.0
This commit is contained in:
30
kirby/config/areas/site/views.php
Executable file
30
kirby/config/areas/site/views.php
Executable file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Kirby\Cms\Find;
|
||||
|
||||
return [
|
||||
'page' => [
|
||||
'pattern' => 'pages/(:any)',
|
||||
'action' => function (string $path) {
|
||||
return Find::page($path)->panel()->view();
|
||||
}
|
||||
],
|
||||
'page.file' => [
|
||||
'pattern' => 'pages/(:any)/files/(:any)',
|
||||
'action' => function (string $id, string $filename) {
|
||||
return Find::file('pages/' . $id, $filename)->panel()->view();
|
||||
}
|
||||
],
|
||||
'site' => [
|
||||
'pattern' => 'site',
|
||||
'action' => function () {
|
||||
return site()->panel()->view();
|
||||
}
|
||||
],
|
||||
'site.file' => [
|
||||
'pattern' => 'site/files/(:any)',
|
||||
'action' => function (string $filename) {
|
||||
return Find::file('site', $filename)->panel()->view();
|
||||
}
|
||||
],
|
||||
];
|
Reference in New Issue
Block a user