Forgive me if this is a simple question... I've built a hierarchical menu that displays three levels. The menu displays perfectly except the Level 1 Item transformation. At this level I need it to check, 1 - if there are child pages and (if there are that) 2, the child pages are not hidden from the navigation.
In my level 1 item transformation I have this code:
<li<%# IfCompare(Eval("NodeChildNodesCount"),0," class='dropdown-submenu'","") %>><a href="<%# GetDocumentUrl() %>"<%# IfCompare(Eval("NodeChildNodesCount"),0," class='dropdown-toggle' data-toggle='dropdown'","") %>><%# Eval("DocumentName") %>
So, it's only checking if there are childpages (NodeChildNodesCount). The problem is that I have some childpage under this level that are not supposed to be displayed in the navigation and it's parent is detecting that they are there and still displaying "class='dropdown-submenu" when it should be displaying "".
How can I check if the child pages are hidden from the navigation.
Thanks in advance for your help!