IdentifyLinkAsInactive() public static method

public static IdentifyLinkAsInactive ( ContentPage cp ) : ContentPage
cp ContentPage
return ContentPage
Exemplo n.º 1
0
        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>();
            }
        }
Exemplo n.º 2
0
        // ======================================

        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);
        }