AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

SitePageLifecycleHandler Methods

The SitePageLifecycleHandler type exposes the following members.

Methods


  Name Description
Public method PostCopyToDraft
Runs after a copy-to-draft commits. The return value is advisory only — the operation has already happened and cannot be rolled back from here.
Public method PostDeleteDraft
Runs after a site-page draft delete commits. The return value is advisory only — the operation has already happened and cannot be rolled back from here.
Public method PostPublish
Runs after a site-page publish commits. The return value is advisory only — the operation has already happened and cannot be rolled back from here.
Public method PostSaveDraft
Runs after a site-page draft save commits. The return value is advisory only — the operation has already happened and cannot be rolled back from here.
Public method PostUnpublish
Runs after a site-page unpublish commits. The return value is advisory only — the operation has already happened and cannot be rolled back from here.
Public method PreCopyToDraft
Runs before a published page is copied into a new draft. Return false to veto the copy.
Public method PreDeleteDraft
Runs before a site-page draft delete commits (the published version stays). Return false to veto the delete.
Public method PrePublish
Runs before a site-page publish commits. Return false to veto the publish.
Public method PreSaveDraft
Runs before a site-page draft save commits. Return false to veto the save.
Public method PreUnpublish
Runs before a site-page unpublish commits. Return false to veto the unpublish.
Public method Validate
Called at the start of every CRUD/publish operation on a SitePage, before any Pre hook. Return false to veto the entire operation.