public static IdentifyLinkAsInactive ( |
||
cp | ||
return |
public void Load() { this.TheSite = SiteData.CurrentSite; if (SecurityData.AdvancedEditMode && !this.IsPageLocked) { using (ContentPageHelper pageHelper = new ContentPageHelper()) { bool bRet = pageHelper.RecordPageLock(this.ThePage.Root_ContentID, this.TheSite.SiteID, SecurityData.CurrentUserGuid); } } CMSConfigHelper.IdentifyLinkAsInactive(this.ThePage); Guid guidContentID = Guid.Empty; if (this.ThePage != null) { guidContentID = this.ThePage.Root_ContentID; this.TheWidgets = SiteData.GetCurrentPageWidgets(guidContentID); } else { this.ThePage = new ContentPage(); this.TheWidgets = new List <Widget>(); } }
// ====================================== private List <SiteNav> TweakData(List <SiteNav> nav) { if (nav != null) { nav.RemoveAll(x => x.ShowInSiteNav == false && x.ContentType == ContentPageType.PageType.ContentEntry); //nav.RemoveAll(x => x.ShowInSiteMap == false && x.ContentType == ContentPageType.PageType.ContentEntry); nav.ForEach(q => CMSConfigHelper.IdentifyLinkAsInactive(q)); } return(nav); }