Hi there,
I want to call a function before publishing content...
Could anyone explain me how exactly the publishing mechanism in SS works ?
Thaks a lot
Best regards
Neobe
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.
Hi there,
I want to call a function before publishing content...
Could anyone explain me how exactly the publishing mechanism in SS works ?
Thaks a lot
Best regards
Neobe
Hi,
Have a look at http://api.silverstripe.com/cms/SiteTree.html#onBeforeWrite, you can call that in your Page class.
Hi dio5,
thanks a lot for your quick response, I´ll try that.
But could you also explain me how exactly the publishing mechanism works in SS ?
Best regards
Neobe
Hmm, I think you better take a look at the code for that in SiteTree.php etc...