Class GroupNavigationTreeNodeProvider
- Namespace
- Dynamicweb.Ecommerce.Frontend.Navigation
- Assembly
- Dynamicweb.Ecommerce.dll
[AddInOrder(2)]
public class GroupNavigationTreeNodeProvider : NavigationTreeNodeProvider
- Inheritance
-
GroupNavigationTreeNodeProvider
- Inherited Members
Methods
GetNodes(NavigationContext, NavigationSettings, NavigationTreeNode)
Gets the group navigation nodes for a given parent based on the provided navigation context and navigation settings.
public override 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 group navigation tree nodes.
InitializeContext(NavigationContext)
Initialize a navigation context. Sets the active group path in Path based on the group ID. The group ID is resolved from GroupId first, falling back to the "GroupID" query string parameter for backward compatibility.
public override void InitializeContext(NavigationContext context)
Parameters
contextNavigationContextThe navigation context used to generate navigation tree nodes.