Set up CV page
This commit is contained in:
parent
18c60b22cd
commit
098b8b8e0d
14 changed files with 117 additions and 31 deletions
18
site/controllers/cv.php
Normal file
18
site/controllers/cv.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
return function ($kirby, $site) {
|
||||
|
||||
// Get shared data from default controller (site.php)
|
||||
$shared = $kirby->controller('site' , compact('site'));
|
||||
|
||||
// Get CV field content
|
||||
$cv = $site->cv();
|
||||
|
||||
// Return merged arrays containing shared data and current controller data
|
||||
return A::merge(
|
||||
$shared,
|
||||
compact(
|
||||
'cv',
|
||||
)
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue