Class PageTree
- Namespace
- Dynamicweb.Content.Data
- Assembly
- Dynamicweb.dll
The PageTree class represents a given Top level page and all descendents of that page
- Inheritance
-
Page
Tree
- Inherited Members
Constructors
PageTree(int)
Initializes a new instance of the PageTree class with the specified AreaID
Parameters
areaId
intThe id of the area for which this PageTree represents the page structure
PageTree(int, Page)
Initializes a new instance of the PageTree class
Parameters
Properties
AreaID
Gets the Area id to which the root page of this PageTree belongs
Property Value
- int
The area id
Count
Gets the number of Pages currently in this PageTree
Property Value
RootNode
Property Value
RootNodeID
Property Value
RootNodes
Gets a list of all root pages for a PageTree representing a complete area
Property Value
Methods
Add(PageTreeItem)
Adds the PageTreeItem instance to this PageTree and resolves its location in the tree
Parameters
item
PageTree Item The item to add to the tree
GetBreadcrumb(PageTreeItem)
Parameters
pageTreeItem
PageTree Item
Returns
GetById(int)
Parameters
id
int
Returns
PageIds()
Gets a list of all page ids in the tree
Returns
- IEnumerable<int>
A list of page id's