fix #5 - Menu : dynamize inspirations 'Nouveautés' label
This commit is contained in:
parent
b14f33e3fa
commit
955b8531a1
3 changed files with 15 additions and 23 deletions
|
|
@ -6,6 +6,7 @@ return function ($page, $kirby, $site) {
|
|||
}
|
||||
$data = $page->toArray();
|
||||
$data['template'] = (string) $page->template();
|
||||
$data['newInspirations'] = (bool) page('inspirations')->children()->findBy('new', 'true');
|
||||
|
||||
$userData = [
|
||||
"role" => (string) $kirby->user()->role(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue