I have built a sibling navigation that will create a link for any preceeding nodes, itself and finally any following sibling nodes. It looks right and each link says its pointing to the correct location except umbraco keeps saying it cant find the page. This leads me to believe that my syntax is wrong so if anyone could have a quick glance would be much appreciated!
1.Concerning your xslt... preceding-sibling + self + following-sibling is actually the same as parent/child. So you can reduce the size of you code by changing your select expression to the following construction:
Thanks! I'm still learning XSLT and best practices for it, so it really is much appreciated.
As for the the umbraco I dont know what happened but i have fixed it. Its a bit strange but Umbraco couldnt locate the actual file. It could pull out all the information from the node but when I tried to navigate to the corresponding page it said the was no existing page/node.
Sibling Navigation
Howdy
I have built a sibling navigation that will create a link for any preceeding nodes, itself and finally any following sibling nodes. It looks right and each link says its pointing to the correct location except umbraco keeps saying it cant find the page. This leads me to believe that my syntax is wrong so if anyone could have a quick glance would be much appreciated!
My code is
its not the most gracefull but it should work!
Thanks in Advance
Alec
Alec,
1.Concerning your xslt... preceding-sibling + self + following-sibling is actually the same as parent/child. So you can reduce the size of you code by changing your select expression to the following construction:
$currentPage/parent::node/child::node[...............]
2. What do you mean "Umbraco keeps saying it cant find the page" ?
Thanks! I'm still learning XSLT and best practices for it, so it really is much appreciated.
As for the the umbraco I dont know what happened but i have fixed it. Its a bit strange but Umbraco couldnt locate the actual file. It could pull out all the information from the node but when I tried to navigate to the corresponding page it said the was no existing page/node.
Alec
You're welcome =)
May be there was some kind of Publish issues...
yeah thats what i was thinking...
is working on a reply...