17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1148 Views |
-
Event API?

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.
-
Re: Event API?

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.
| 1148 Views | ||
|
Page:
1
|
Go to Top |


