internal PageCollection GetRootChildren() { Predicate <PageIndexItem> match = IsPublished.And(t => t.ParentId == Guid.Empty); var site = SiteFactory.CurrentSite <CmsSite>(); return(GetPagesByCriteriaSorted(match, site.ChildSortOrder, site.ChildSortDirection)); }
internal PageCollection GetRootChildren(int pageTypeId, PublishState pageState) { Predicate <PageIndexItem> match = t => t.ParentId == Guid.Empty && t.PageTypeId == pageTypeId; match = AddPredicateForPageState(pageState, match); var site = SiteFactory.CurrentSite <CmsSite>(); return(GetPagesByCriteriaSorted(match, site.ChildSortOrder, site.ChildSortDirection)); }
public StartPageViewModel(StartPage currentPage) { CurrentPage = currentPage; CurrentSite = SiteFactory.CurrentSite <DemoSite>(); }
public ProductListPageViewModel(ProductListPage currentPage) { CurrentPage = currentPage; CurrentSite = SiteFactory.CurrentSite <DemoSite>(); }
public ContactPageViewModel(ContactPage currentPage) { CurrentPage = currentPage; CurrentSite = SiteFactory.CurrentSite <DemoSite>(); FormData = new ContactPageFormData(); }
public NewsListPageViewModel(NewsListPage currentPage) { CurrentPage = currentPage; CurrentSite = SiteFactory.CurrentSite <DemoSite>(); }
public PageViewModel(T currentPage) { CurrentPage = currentPage; CurrentSite = SiteFactory.CurrentSite <DemoSite>(); TopMenu = new List <CmsPage>(); }