Hi there,
I am trying to integrate Algolia into our website, and I'm wanting to hook into the saving of an inline CKEditor Content field on a page, so that when you double click, edit the content, and hit save, it updates the Search Index.
Currently, I have this hook in ready.php:
$this->addHookAfter('Pages::savedPageOrField', function(HookEvent $event) {
$page = $event->arguments(0);
wire('log')->save('debug', 'Saving Field');
});
Just to try and confirm that the event is executing, but when I save the content inline on a page, nothing gets added to my log. I have also tried with the Pages::savedField event and it also doesn't work. Is there a different hook I should be using?
Thanks!