This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

catalinag
catalinag

I'm creating a new component which extends on the Rainlab.Pages plugin. It needs to trigger a function on every save/update of a page. I guessed that I would be able to do this using Event::listen(), but there does not appear to be any events available which I can hook onto that return the page which has just been saved.

What would be the correct way to extend on the Rainlab.Pages plugin so that I can fire my own code when a page is saved?

daftspunky
daftspunky
[account]
[yourComponent]
==
function onMyHandler()
{
    $this->account->onSave();
    // Do my custom logic here
}

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.