Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Event API?

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1260 Views
  • thehobo
    Community Member
    1 Post

    Event API? Link to this post

    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.

  • Ingo
    Forum Moderator
    801 Posts

    Re: Event API? Link to this post

    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.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.