1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-16 12:06:21 +02:00

Add OnPagetreeLoaded Event to the setFreshNavigation method

This commit is contained in:
Andreas
2021-11-26 13:36:49 +01:00
parent 7abf2806a0
commit cdeb76ccd5

View File

@ -7,6 +7,7 @@ use Typemill\Models\Folder;
use Typemill\Models\WriteCache;
use Typemill\Models\WriteYaml;
use Typemill\Events\OnPageReady;
use Typemill\Events\OnPagetreeLoaded;
abstract class ControllerShared
{
@ -226,7 +227,7 @@ abstract class ControllerShared
$this->setStructureLive();
}
$structureLive = $this->structureLive;
$structureLive = $this->c->dispatcher->dispatch('onPagetreeLoaded', new OnPagetreeLoaded($this->structureLive))->getData();
$this->navigation = $this->createNavigation($structureLive);
# cache navigation