I am not sure what you mean exactly but for your outer for each statement (<xsl:for-eachselect="$homeNode/*[@level = 2][umbracoNaviHide != 1]">) you are going to get all the nodes which are 2 levels below the home node and so if that is always the same then it will always show the same.
For your subnav dropdown for each statement (<xsl:for-eachselect="umbraco.library:GetXmlNodeById(1055)/Services">), you are always going to get all the 'Services' children of the node with an ID of 1055. Is that what you mean?
This doesn't make any sense; as / is an immediate child selector, it looks like this query should either return *all* child nodes of $homeNode, if $homeNode is at level 1; or *no* child nodes at all if $homeNode is at any other level.
As Seth says there doesn't appear to be any condition on your Services menu so it will be displayed every time; I'm still not 100% clear on what you want I'm afraid.
This following code will give you a framework that goes through all children of the home page then displays the services sub-menu only when it hits your services node, if that is the sort of thing you are after?
Can't seem to list child nodes by ID
Hi, Im having some issues with listing sub pages of a specific node.
I seem to be getting the sub pages repeated under the all nodes.
Any help woul be grateful.
I am not sure what you mean exactly but for your outer for each statement (<xsl:for-each select="$homeNode/*[@level = 2][umbracoNaviHide != 1]">) you are going to get all the nodes which are 2 levels below the home node and so if that is always the same then it will always show the same.
For your subnav dropdown for each statement (<xsl:for-each select="umbraco.library:GetXmlNodeById(1055)/Services">), you are always going to get all the 'Services' children of the node with an ID of 1055. Is that what you mean?
Hi Seth.
Im wanting to show only the child nodes of the Services node (1055).
I have other nodes on the same level as the Services node, they also have children. I dont want to show any child nodes of level 2.
It seems that any child of level 2 is being replaced with the Services child nodes.
Thanks
This doesn't make any sense; as / is an immediate child selector, it looks like this query should either return *all* child nodes of $homeNode, if $homeNode is at level 1; or *no* child nodes at all if $homeNode is at any other level.
As Seth says there doesn't appear to be any condition on your Services menu so it will be displayed every time; I'm still not 100% clear on what you want I'm afraid.
This following code will give you a framework that goes through all children of the home page then displays the services sub-menu only when it hits your services node, if that is the sort of thing you are after?
Oh my GOD, is it just me that the post editor in this forum is trying to drive insane?!
Hi Rob,
Thanks that worked
I was trying to display only the Service children at level 3 of my navigation.
is working on a reply...