hallo!
i'm new to processwire. i try to append the page id to the page name with a hook, when the page is added. so it looks like page-id.
i used addHookAfter('added') for this, but its not working.
public function hookAfterAdded($event)
{
$page = $event->arguments[0];
$page->name = $page->name .'-'. $page->id;
$this->message('added '.$page->name);
}
any idea to solve the problem! Thanks
- sanstraces -