Hello,
I have the impression that the panel hook “panel.page.create” is no longer called when a new page is created.
Is this a known issue ? Am I doing something wrong or am I missing something ?
best regards,
gunther
Hello,
I have the impression that the panel hook “panel.page.create” is no longer called when a new page is created.
Is this a known issue ? Am I doing something wrong or am I missing something ?
best regards,
gunther
I just tested this and works fine. This was my test code:
<?php
kirby()->hook('panel.page.create', 'run');
function run( $page ) {
$path = kirby()->roots()->content();
$content = '';
$content .= $page->title();
file_put_contents( $path . '/test.txt', $content );
}
?>
Thank you.
The error is indeed elsewhere in my code.
Sorry for the bother
Hi again,
Related to my problems : is there a way to define the order in which multiple hooks get called on the same hook-ID ?
thanks