5121 Posts in 1527 Topics by 1119 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1100 Views |
-
implement 'Save and publish' button

14 October 2010 at 3:53am
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 -
Re: implement 'Save and publish' button

14 October 2010 at 4:05am
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
}
| 1100 Views | ||
|
Page:
1
|
Go to Top |


