Class PageTreeItem
- Namespace
- Dynamicweb.Content.Data
- Assembly
- Dynamicweb.dll
The PageTreeItem class represents a page in a PageTree instance
public class PageTreeItem
- Inheritance
-
PageTreeItem
- Inherited Members
Constructors
PageTreeItem()
Initializes a new instance of the PageTreeItem class
public PageTreeItem()
PageTreeItem(Page)
Initializes a new instance of the PageTreeItem class encapsulating parts of the data from the page argument
public PageTreeItem(Page page)
Parameters
page
PageThe page that this PageTreeItem encapsulates
Properties
AreaID
Gets or sets the id of the area to which this page belongs
public int AreaID { get; set; }
Property Value
Children
Gets all children in the PageTree Instance
public IList<PageTreeItem> Children { get; set; }
Property Value
DisplayMode
Gets or sets the page display mode.
public DisplayMode DisplayMode { get; set; }
Property Value
HasContentType
Gets or sets a value indicating if this Page has selected content type.
public bool HasContentType { get; set; }
Property Value
HasEcommerceNavigation
Gets or sets a value indicating if this Page has Ecommerce navigation which is turned on.
public bool HasEcommerceNavigation { get; set; }
Property Value
HasUrlProvider
Gets or sets a value indicating if this Page has URL provider.
public bool HasUrlProvider { get; set; }
Property Value
ID
Gets or sets the page id of this page tree item
public int ID { get; set; }
Property Value
- int
The id of this page
IsDraft
Gets or sets a value indiacting if this Page is draft
public bool IsDraft { get; set; }
Property Value
IsFolder
Gets or sets a value indiacting if this Page is representing a folder
public bool IsFolder { get; set; }
Property Value
IsHidden
Gets or sets a value indiacting if this Page is hidden
public bool IsHidden { get; set; }
Property Value
IsLockedByMaster
Gets or sets a value if the page is locked by master page.
public bool IsLockedByMaster { get; set; }
Property Value
IsPublished
Gets or sets a value indiacting if this Page is published
public bool IsPublished { get; set; }
Property Value
IsShortcut
Gets or sets a value indicating if this Page is shortcut
public bool IsShortcut { get; set; }
Property Value
IsTemplate
Gets or sets a value if this page is a template
public bool IsTemplate { get; set; }
Property Value
IsTemplateFolder
Gets a value indicating if this is a template folder
public bool IsTemplateFolder { get; }
Property Value
IsUrlIgnoredForChildren
Gets or sets a value indicating if this Page URL does not includes in subpage URLs.
public bool IsUrlIgnoredForChildren { get; set; }
Property Value
ItemId
Gets or sets the item id of this page tree item
public string ItemId { get; set; }
Property Value
- string
The item id
ItemType
Gets or sets the item type of this page
public string ItemType { get; set; }
Property Value
Level
Gets or sets the level of this page tree item relative from the root page in a given PageTree
public int Level { get; set; }
Property Value
- int
The level of this page
NavigationTag
Gets or sets a value of the Page navigation tag.
public string NavigationTag { get; set; }
Property Value
Parent
Gets the parent of this PageTreeItem
public PageTreeItem Parent { get; set; }
Property Value
ParentAreaIsLanguage
Gets or sets a value if this page is in website language
public bool ParentAreaIsLanguage { get; set; }
Property Value
ParentId
Gets or sets the parent page id of this page tree item
public int ParentId { get; set; }
Property Value
- int
The parent id of this page
Restricted
Gets or sets a value indiacting if this Page is restricted
public bool Restricted { get; set; }
Property Value
Scheduled
Gets or sets a value indiacting if this Page is scheduled
public bool Scheduled { get; set; }
Property Value
Sort
Gets or sets the PageSort for this PageTreeItem indicating the sort order between items on the same PageLevel
public int Sort { get; set; }
Property Value
SubpageCount
Gets the number of subpages for this PageTreeItem
public int SubpageCount { get; }
Property Value
- int
An integer indicating the number of sub pages under this PageTreeItem
TemplateDescription
Gets or sets the description of this page if it is a Template
public string TemplateDescription { get; set; }
Property Value
Title
Gets or sets the page title of this page tree item
public string Title { get; set; }
Property Value
- string
The title of this page
Methods
GetDisplayName()
public string GetDisplayName()
Returns
GetPermission()
public PermissionLevel GetPermission()
Returns
HasPermission(PermissionLevel)
public bool HasPermission(PermissionLevel permission)
Parameters
permission
PermissionLevel