fix #14
This commit is contained in:
parent
6801286c5f
commit
aea050f6cc
8 changed files with 36 additions and 73 deletions
|
|
@ -1,25 +0,0 @@
|
|||
<?php
|
||||
|
||||
use Kirby\Uuid\Uuid;
|
||||
|
||||
return [
|
||||
'pattern' => 'auteurs/(:any)',
|
||||
'action' => function ($slug) {
|
||||
$kirby = kirby();
|
||||
$author = getAuthorBySlug($slug);
|
||||
|
||||
return Page::factory(
|
||||
[
|
||||
'slug' => '',
|
||||
'template' => 'author',
|
||||
'model' => 'authors',
|
||||
'content' => [
|
||||
'title' => $author->name(),
|
||||
'presentation' => $author->presentation(),
|
||||
'author' => $author->name(),
|
||||
'uuid' => Uuid::generate(),
|
||||
]
|
||||
]
|
||||
);
|
||||
}
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue