22477 Posts in 7058 Topics by 2752 members
|Go to End|
6 July 2013 at 7:46am
I am new in SilverStripe, using version 3.5. I have a doubt in core silverstripe.
I need to override the default submit event in admin side of silver stripe?
I need to implement a new functionality like,
I have two tables, and when I try to insert a new value / delete a value from one table, then I need to automatically insert/delete that record from the other table. We can do it through writing rules in mysql, but the problem is that, I need to edit one of the field in the new table. So I need an interface for edit the second table. So i need to insert the record through Silver Stripe.
Thanks in advance.
6 July 2013 at 8:34am
Hi, i Think you are looking for the onBeforeWrite method (there is also one for delete) http://doc.silverstripe.org/framework/en/topics/datamodel
Add to your Page class or where you want to do something before the dataobject / record is saved.
|Go to Top|