17488 Posts in 4473 Topics by 1978 members
|Go to End|
21 February 2008 at 6:36am Last edited: 21 February 2008 6:39am
Does the Silverstripe CMS offers some kind of events API something like OnSaveContent, OnUserUpdate, OnContentUpdate et cetera?
The purpose of this is to allow me to have a piece of code that will triggered by these event hooks for instance when a cms editor updates a content, i want some kind of email to fire to a specific person.
24 February 2008 at 6:55pm
hm, good idea - currently we don't have this functionality.
you can work with Page->onBeforeWrite()/onBeforeDelete() etc.
we might have a suitable concept with DataObjectDecorator (e.g. Versioned.php) in which you could hook additional functionality without having to subclass - but all pretty low-level stuff as it stands.
|Go to Top|