Table of Contents

Class PageTree

Namespace
Dynamicweb.Content.Data
Assembly
Dynamicweb.dll

The PageTree class represents a given Top level page and all descendents of that page

public class PageTree
Inheritance
PageTree
Inherited Members

Constructors

PageTree(int)

Initializes a new instance of the PageTree class with the specified AreaID

public PageTree(int areaId)

Parameters

areaId int

The id of the area for which this PageTree represents the page structure

PageTree(int, Page)

Initializes a new instance of the PageTree class

public PageTree(int areaId, Page rootPage)

Parameters

areaId int
rootPage Page

Properties

AreaID

Gets the Area id to which the root page of this PageTree belongs

public int AreaID { get; }

Property Value

int

The area id

Count

Gets the number of Pages currently in this PageTree

public int Count { get; }

Property Value

int

RootNode

public PageTreeItem RootNode { get; }

Property Value

PageTreeItem

RootNodeID

public int RootNodeID { get; }

Property Value

int

RootNodes

Gets a list of all root pages for a PageTree representing a complete area

public IEnumerable<PageTreeItem> RootNodes { get; }

Property Value

IEnumerable<PageTreeItem>

Methods

Add(PageTreeItem)

Adds the PageTreeItem instance to this PageTree and resolves its location in the tree

public void Add(PageTreeItem item)

Parameters

item PageTreeItem

The item to add to the tree

GetBreadcrumb(PageTreeItem)

public Breadcrumb GetBreadcrumb(PageTreeItem pageTreeItem)

Parameters

pageTreeItem PageTreeItem

Returns

Breadcrumb

GetById(int)

public PageTreeItem GetById(int id)

Parameters

id int

Returns

PageTreeItem

PageIds()

Gets a list of all page ids in the tree

public IEnumerable<int> PageIds()

Returns

IEnumerable<int>

A list of page id's

To top