Ejemplo n.º 1
0
        public static bool ShouldExcludePage(PageData page)
        {
            if (page == null)
            {
                return(true);
            }

            if (!IsAccessibleToEveryone(page))
            {
                return(true);
            }

            if (!page.CheckPublishedStatus(PagePublishedStatus.Published))
            {
                return(true);
            }

            if (!IsVisibleOnSite(page))
            {
                return(true);
            }

            if (IsLink(page))
            {
                return(true);
            }

            if (!IsSitemapPropertyEnabled(page))
            {
                return(true);
            }

            if (page.PageLink == ContentReference.WasteBasket)
            {
                return(true);
            }

            if (page.IsDeleted)
            {
                return(true);
            }

            if (!page.HasTemplate())
            {
                return(true);
            }

            return(false);
        }
Ejemplo n.º 2
0
 public virtual bool HasTemplate(PageData content)
 {
     return(content.HasTemplate());
 }
 public virtual bool HasTemplate(PageData content)
 {
     return content.HasTemplate();
 }
Ejemplo n.º 4
0
 private static bool IsVisibleOnSite(PageData page)
 {
     return(page.HasTemplate() && !page.IsPendingPublish && !string.IsNullOrEmpty(page.StaticLinkURL));
 }