コード例 #1
0
 public PageListBlockViewModel(PageListBlock block)
 {
     Heading          = block.Heading;
     ShowIntroduction = block.IncludeTeaserText;
     ShowPublishDate  = block.IncludePublishDate;
     PaddingStyles    = block.PaddingStyles;
 }
コード例 #2
0
 public PageListPreviewViewModel(PageData page, PageListBlock block)
 {
     Page             = page;
     Template         = block.Template;
     PreviewOption    = block.PreviewOption;
     ShowIntroduction = block.IncludeTeaserText;
     ShowPublishDate  = block.IncludePublishDate;
 }
コード例 #3
0
 public PageListBlockViewModel(PageListBlock currentBlock,
                               PageDataCollection pageCollection,
                               PageData rootPage)
 {
     CurrentBlock   = currentBlock;
     PageCollection = pageCollection;
     RootPage       = rootPage;
 }
コード例 #4
0
ファイル: PageListModel.cs プロジェクト: webeli/AlloyReact
        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);
        }
コード例 #5
0
 public PageListModel(PageListBlock block)
 {
     Heading          = block.Heading;
     ShowIntroduction = block.IncludeIntroduction;
     ShowPublishDate  = block.IncludePublishDate;
 }
コード例 #6
0
 public PageListModel(PageListBlock block)
 {
     Heading = block.Heading;
     ShowIntroduction = block.IncludeIntroduction;
     ShowPublishDate = block.IncludePublishDate;
 }
コード例 #7
0
ファイル: PageListModel.cs プロジェクト: Tanja5555/Bookshelf
 public PageListModel(PageListBlock block)
 {
     Heading = block.Heading;
 }
コード例 #8
0
 public PageListBlockViewModel(SitePage currentPage, PageListBlock block)
     : base(currentPage)
 {
     PageListBlock = block;
 }