This commit is contained in:
parent
6804a4c9b7
commit
7815c8b49a
3 changed files with 32 additions and 10 deletions
|
|
@ -2,6 +2,12 @@
|
|||
|
||||
return [
|
||||
'debug' => true,
|
||||
'cache' => [
|
||||
'pages' => [
|
||||
'active' => true
|
||||
],
|
||||
'api' => true
|
||||
],
|
||||
'smartypants' => true,
|
||||
'locale' => 'fr_FR.utf-8',
|
||||
'date' => [
|
||||
|
|
@ -34,5 +40,6 @@ return [
|
|||
'hooks' => [
|
||||
'page.create:after' => require_once(__DIR__ . '/hooks/create-steps.php'),
|
||||
'page.delete:before' => require_once(__DIR__ . '/hooks/delete-steps.php'),
|
||||
'page.update:after' => require_once(__DIR__ . '/hooks/regenerate-project-steps-cache.php')
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
return function($newPage, $oldPage) {
|
||||
if ($newPage->template() == 'project' || $newPage->parents()->findBy('template', 'project')) {
|
||||
$newPage->getSteps();
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue