Ejemplo n.º 1
0
        protected virtual void CreateSelectItemTreeNode(RequestContext requestContext, Page page, List<PageItem> list)
        {
            var item = new PageItem();
            item.Text = page.FriendlyName;
            item.Value = page.FullName;
            item.IsPublished = page.Published.HasValue ? page.Published.Value : false;
            list.Add(item);

            var children = ServiceFactory.PageManager.ChildPages(Site.Current, page.FullName, null);

            children.ForEach((p, index) =>
            {
                CreateSelectItemTreeNode(requestContext, p, list);
            });
        }
Ejemplo n.º 2
0
        protected virtual void CreateSelectItemTreeNode(RequestContext requestContext, Page page, List <PageItem> list)
        {
            var item = new PageItem();

            item.Text        = page.FriendlyName;
            item.Value       = page.FullName;
            item.IsPublished = page.Published.HasValue ? page.Published.Value : false;
            list.Add(item);

            var children = ServiceFactory.PageManager.ChildPages(Site.Current, page.FullName, null);

            children.ForEach((p, index) =>
            {
                CreateSelectItemTreeNode(requestContext, p, list);
            });
        }