Hi!
I need add a functionality in my admin CMS area when I click on 'save and published' button. I'm unable to find exact point and exact function. Help please..
For 'save' button I modifiy onBeforeWrite() function.
And How can I change messages after save?
Thanks
We've moved the forum!
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.
assuming you want to do something after the publish... this is what I'd start with...
in your data object override the publish function...
function publish($fromStage, $toStage, $createNewVersion = false)
{
parent::publish($fromStage, $toStage, $createNewVersion);
//do stuff
}