Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Do we have any option to disable the save and publish button available in umrbaco programmatically.?
You can cancel the save and publish actions by attaching to the BeforeSave and BeforePublish events.
public class SavePublishHandler : ApplicationBase { public SavePublishHandler() { Document.BeforeSave += Document_BeforeSave; Document.BeforeSendToPublish += Document_BeforeSendToPublish; } private void Document_BeforeSendToPublish(Document sender, umbraco.cms.businesslogic.SendToPublishEventArgs e) { e.Cancel = true; } private void Document_BeforeSave(Document sender, umbraco.cms.businesslogic.SaveEventArgs e) { e.Cancel = true; }}
Is there any new code that we can use to replace the Save and Publish button using 7.5? Thanks
Jon
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Disable Save and Publish button in admin side
Do we have any option to disable the save and publish button available in umrbaco programmatically.?
You can cancel the save and publish actions by attaching to the BeforeSave and BeforePublish events.
Is there any new code that we can use to replace the Save and Publish button using 7.5? Thanks
Jon
is working on a reply...