C# Class Sitecore.SharedSource.Commons.CustomSitecore.Pipeline.CancelEntireSitePublish

CancelEntireSitePublish is a safe guard against a publish of a home item and its sub items. Checks the root item for a child of /sitecore/content and if the deep option is true.
Show file Open project: Velir/Sitecore-Commons

Public Methods

Method Description
CheckProcessing ( object sender, EventArgs args ) : void

Option to overwrite the sitecoreBasePaths by setting the AppSettings configuration Sitecore.SharedSource.Commons.CancelEntireSitePublish Option to allow admins to perform the publish and override this functionality by setting the AppSettings configuration Sitecore.SharedSource.Commons.AllowAdminEntireSitePublish to "1" or "true" Option to specify exclusion paths that won't go through this functionality by setting the AppSettings configuration Sitecore.SharedSource.Commons.CancelEntireSitePublishExclusionPaths Option to specify the message written when this process cancels a site publish by setting the AppSettings configuration Sitecore.SharedSource.Commons.CancelEntireSitePublishMessage Add a handler to the itemProcessing pipeline as follows in this example. Build using Sitecore.Kernel Version 6.0 081022

Method Details

CheckProcessing() public method

Option to overwrite the sitecoreBasePaths by setting the AppSettings configuration Sitecore.SharedSource.Commons.CancelEntireSitePublish Option to allow admins to perform the publish and override this functionality by setting the AppSettings configuration Sitecore.SharedSource.Commons.AllowAdminEntireSitePublish to "1" or "true" Option to specify exclusion paths that won't go through this functionality by setting the AppSettings configuration Sitecore.SharedSource.Commons.CancelEntireSitePublishExclusionPaths Option to specify the message written when this process cancels a site publish by setting the AppSettings configuration Sitecore.SharedSource.Commons.CancelEntireSitePublishMessage Add a handler to the itemProcessing pipeline as follows in this example. Build using Sitecore.Kernel Version 6.0 081022
public CheckProcessing ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
return void