Exemplo n.º 1
0
        public override List <ListItem> InitItems(List <Guid> guidContext, DateTime dateContext, bool bypassCaches, Hashtable compileState)
        {
            List <ListItem> listItems = new List <ListItem>();


            ChannelItem channelItem = new ChannelItem(ListItemType.ChannelItem);

            channelItem.Channel = this;
            listItems.Add(channelItem);

            return(listItems);
        }
Exemplo n.º 2
0
        public override List <ListItem> InitItems(List <Guid> guidContext, DateTime dateContext, bool bypassCaches, Hashtable compileState)
        {
            List <ListItem> items = new List <ListItem>();

            if (this.webPageType == WebPageType.FullPage)
            {
                ChannelItem channelItem = new ChannelItem(dateContext);
                channelItem.Channel = this;
                items.Add(channelItem);
            }
            else
            {
                Feed feed = Feed.LoadWebPage(this.url);

                List <FeedItem> feedItems = feed.GetFeedItems(dateContext, bypassCaches);
                feed.AddUrlChannelItems(this, items, dateContext, bypassCaches, this.width, this.height);
            }

            return(items);
        }