Hello, I have a menu which changes color depending on which node its on, still same menu and everything, and the value for CurrentModel.AncestorOrSelf(2) (when debug with breakpoints I get correct value). But I cannot get it to work, whole code (foreach) works just fine for menu (1).
public static bool IsInMyArea(DynamicNode node) { var ret = false; while (node!=null) { if (node.NodeTypeAlias == "MyNetRoot") { ret = true; break; } node = node.Parent; } return ret; }
Changing Menu from level 1 to level 2
Hello, I have a menu which changes color depending on which node its on, still same menu and everything, and the value for CurrentModel.AncestorOrSelf(2) (when debug with breakpoints I get correct value). But I cannot get it to work, whole code (foreach) works just fine for menu (1).
Macroscripts:
And my Helper class has following
is working on a reply...