Hi Cheese and others,
I need to fire an event after someone hits the save button on a DOM popup.
How would I go about doing this?
In a regular page I would just add function onAfterWrite(){}
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba
Hi Cheese and others,
I need to fire an event after someone hits the save button on a DOM popup.
How would I go about doing this?
In a regular page I would just add function onAfterWrite(){}
Yup. onAfterWrite() is a member function of DataObject, not SiteTree, so it works the same way..
--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com