Table of Contents

Class NavigationTreeNodeViewModel

Namespace
Dynamicweb.Frontend.Navigation
Assembly
Dynamicweb.dll

Represents a navigation node in a NavigationTreeViewModel.

public class NavigationTreeNodeViewModel : ViewModelBase
Inheritance
NavigationTreeNodeViewModel
Inherited Members
Extension Methods

Properties

GroupId

Gets the group id of the ecommerce group that this navigation node represents. If the node is not a ecommerce group, the group id is empty.

public string GroupId { get; set; }

Property Value

string

E.g. GROUP130.

InPath

Gets a value indicating whether node is in path.

public bool InPath { get; set; }

Property Value

bool

true if in path; otherwise, false.

See Also

IsActive

Gets a value indicating whether this node is active.

public bool IsActive { get; set; }

Property Value

bool

Returns true if this is the currently active navigation node, i.e. the page being shown.

See Also

IsClickable

Gets or sets a value indicating whether the node should be clickable (link). It's mapped from Allowclick

public bool IsClickable { get; set; }

Property Value

bool

true if it's clickable; otherwise, false.

Level

Gets the level of the node in the navigation tree relative to the root.

public int Level { get; set; }

Property Value

int

The level, e.g. 3.

Gets the link of the node.

public string Link { get; set; }

Property Value

string

The link, i.e. /home/products or /products/bikes/mountain-bike.

Name

Gets the name of node - the page name, group name etc. It's mapped from MenuText

public string Name { get; set; }

Property Value

string

E.g. Products

Nodes

Gets the sub nodes (or subpages) to this navigation node.

public IEnumerable<NavigationTreeNodeViewModel> Nodes { get; }

Property Value

IEnumerable<NavigationTreeNodeViewModel>

A collection of NavigationTreeNodeViewModel

PageId

Gets the page id of the page that this navigation node represents.

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.

It's mapped from Page.ID

public int PageId { get; set; }

Property Value

int

E.g. 150

ShowInBreadcrumb

Gets a value indicating weather the node should be shown in breadcrumb. It's mapped from ShowInLegend

public bool ShowInBreadcrumb { get; set; }

Property Value

bool

Returns true if the node should be shown in breadcrumb

ShowInMenu

Gets a value indicating weather the node should be shown in menu. It's mapped from ShowInMenu

public bool ShowInMenu { get; set; }

Property Value

bool

Returns true if the node should be shown in menu

ShowInSitemap

Gets a value indicating weather the node should be shown in sitemap. It's mapped from ShowInSitemap

public bool ShowInSitemap { get; set; }

Property Value

bool

Returns true if the node should be shown in sitemap

To top