Hi
I have a custom NaviagtionProvider adding some extra nodes to some of my Ecommerce groups. After 9.6.6 its no longer working. When I select my custom provider in the navigation provider dropdown, my ecommerce navigation becomes empty. When I try savexml=true the xml no longer containing any ecommerce node, only content pages.
This is a simplyfied version og my code, just adding a single node to the childnodes
public class MenuProviderDW97 : NavigationProvider
{
public override void ProcessTree(RootNavigationItem rootNode, XmlNavigation.NavigationType navigationType)
{
foreach (NavigationItem node in rootNode.ChildNodes)
{
//The page holding the ecommerce navigation
if (node.MenuText == "Shop")
{
foreach (NavigationItem n1 in node.ChildNodes)
{
n1.AddChild(addChildNode(true, "Featured products", "/Shop?featured=true"));
}
}
}
}
private MyMenuItem addChildNode(bool allowClick, string menuText, string url)
{
MyMenuItem menuItem = new MyMenuItem
{
FriendlyHref = url
};
menuItem.MenuText = menuText;
menuItem.AllowClick = allowClick;
menuItem.NavigationItemType = NavigationItem.ItemType.group;
return menuItem;
}
}
public class MyMenuItem : NavigationItem
{
}