Class NavigationTreeNode
- Namespace
- Dynamicweb.Frontend.Navigation
- Assembly
- Dynamicweb.dll
Represents a navigation tree node.
- Inheritance
-
Navigation
Tree Node
- Inherited Members
Constructors
NavigationTreeNode(string)
Parameters
nodeId
string
Properties
AreaId
Gets or sets the area id of the page that this navigation node represents.
Property Value
- int
The area id that this node links.
GroupId
Gets or sets the group id of the ecommerce group that this navigation node represents.
Property Value
- string
The group id of the group that this node links to. If the node is not a ecommerce group, the group id is empty.
IsClickable
Gets or sets a value indicating whether the node should be clickable (link).
Property Value
- bool
true
if active; otherwise,false
.
Level
Gets or sets the level of the node in the navigation tree relative to the root.
Property Value
- int
The level.
Link
Gets or sets the link of the node, i.e /home/products or /products/bikes/mountain-bike.
Property Value
- string
The link.
Name
Gets or sets the name of node - the page name, group name etc.
Property Value
- string
The name.
NodeId
Property Value
PageId
Gets or sets the pageid of the page that this navigation node represents.
Property Value
- int
The page id that this node links to. If the node is not a page, i.e. an Ecommerce group, the pageid is the id of the page where the ecommerce navigation is attached.
ShowInBreadcrumb
Gets or sets a value indicating weather the node should be shown in breadcrumb
Property Value
ShowInMenu
Gets or sets a value indicating weather the node should be shown in menu. Will always be true except if explicitly included
Property Value
ShowInSitemap
Gets or sets a value indicating weather the node should be shown in sitemap
Property Value
Methods
GetNodes(NavigationContext, NavigationSettings)
Gets the sub nodes (children) to this navigation node.
public IEnumerable<NavigationTreeNode> GetNodes(NavigationContext context, NavigationSettings settings)
Parameters
context
NavigationContext settings
NavigationSettings
Returns
IsActive(NavigationContext)
Gets a value indicating whether node is active.
Parameters
context
NavigationContext
Returns
IsInPath(NavigationContext)
Gets a value indicating whether node is in path.
Parameters
context
NavigationContext