/// <summary> /// Checks out the page template /// </summary> /// <param name="pageTemplateInfo">Page template to check out</param> private void CheckOutTemplate(PageTemplateInfo pageTemplateInfo) { var objectManager = CMSObjectManager.GetCurrent(Page); if ((objectManager != null) && CMSObjectManager.KeepNewObjectsCheckedOut) { objectManager.CheckOutObject(pageTemplateInfo); } }
/// <summary> /// Checks out the page template /// </summary> /// <param name="pageTemplateInfo">Page template to check out</param> private void CheckOutTemplate(PageTemplateInfo pageTemplateInfo) { var objectManager = CMSObjectManager.GetCurrent(this) ?? new CMSObjectManager(); if (CMSObjectManager.KeepNewObjectsCheckedOut) { objectManager.CheckOutObject(pageTemplateInfo); } }