public PageListBlockViewModel(PageListBlock block) { Heading = block.Heading; ShowIntroduction = block.IncludeTeaserText; ShowPublishDate = block.IncludePublishDate; PaddingStyles = block.PaddingStyles; }
public PageListPreviewViewModel(PageData page, PageListBlock block) { Page = page; Template = block.Template; PreviewOption = block.PreviewOption; ShowIntroduction = block.IncludeTeaserText; ShowPublishDate = block.IncludePublishDate; }
public PageListBlockViewModel(PageListBlock currentBlock, PageDataCollection pageCollection, PageData rootPage) { CurrentBlock = currentBlock; PageCollection = pageCollection; RootPage = rootPage; }
public PageListModel(PageListBlock block) { Heading = block.Heading; IncludeIntroduction = block.IncludeIntroduction; IncludePublishDate = block.IncludePublishDate; // Content link is either for an independent block, or for content with a property of type PageListBlock ContentLink = block is IContent ? ((IContent)block).ContentLink : ServiceLocator.Current.GetInstance <IPageRouteHelper>().ContentLink; Pages = new PageListBlockController(_contentLocator.Service, _contentLoader.Service).FindPages(block); }
public PageListModel(PageListBlock block) { Heading = block.Heading; ShowIntroduction = block.IncludeIntroduction; ShowPublishDate = block.IncludePublishDate; }
public PageListModel(PageListBlock block) { Heading = block.Heading; }
public PageListBlockViewModel(SitePage currentPage, PageListBlock block) : base(currentPage) { PageListBlock = block; }