Beispiel #1
0
        public PageNode(PageItem page)
            : this()
        {
            Id = page.Id;
            if (page.IsHomePage)
            {
                CssClass = "homepage";
                Type = "page";
            }
            Name = page.Name;

            // meta nodes
            Children.Add(new SearchEngineMetaNode(page));
            Children.Add(new FacebookMetaNode(page));
        }
Beispiel #2
0
 public void AddPage(PageItem page)
 {
     Children.Add(new PageNode(page));
 }
Beispiel #3
0
 public FacebookMetaNode(PageItem page)
 {
     Id = page.Id;
     CssClass = "facebook";
     Name = "Facebook";
 }
 public SearchEngineMetaNode(PageItem page)
 {
     Id = page.Id;
     CssClass = "search";
     Name = "Search";
 }