Class NavigationTreeNodeProvider
- Namespace
- Dynamicweb.Frontend.Navigation
- Assembly
- Dynamicweb.dll
Base class for navigation tree node providers.
public abstract class NavigationTreeNodeProvider
- Inheritance
-
NavigationTreeNodeProvider
- Derived
- Inherited Members
Methods
GetNodes(NavigationContext, NavigationSettings, NavigationTreeNode)
Gets the navigation nodes for a given parent based on the provided navigation context and navigation settings.
public virtual IEnumerable<NavigationTreeNode> GetNodes(NavigationContext context, NavigationSettings settings, NavigationTreeNode parent)
Parameters
contextNavigationContextThe navigation context used to generate navigation tree nodes.
settingsNavigationSettingsThe navigation settings used to generate navigation tree nodes.
parentNavigationTreeNodeThe parent navigation tree node.
Returns
- IEnumerable<NavigationTreeNode>
A colllection of navigation tree nodes.
InitializeContext(NavigationContext)
Initialize a navigation context.
public virtual void InitializeContext(NavigationContext context)
Parameters
contextNavigationContextThe navigation context used to generate navigation tree nodes.
Remarks
An important part here is to fill NodePathIds property - the collection of node identifiers from the root node to the active node