Jump to content

kur1977

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by kur1977

  1. replacing $this->addHookAfter('Pages::saveReady', $this, 'afterSaveReady'); with $this->addHookAfter('Pages::save', $this, 'afterSaveReady'); fix the problem )))
  2. Hi. I need to create a page when the page was edited or created. I wrote the hook as describet there https://github.com/processwire-recipes/Recipes/blob/master/extending-page-save-process.md And placed in it the code like in the beginning of this topic. The problem is - if there is $p->save(); line exists - the images that I delete in the editing page are not deleted (((
×
×
  • Create New...