if you choose @CurrentPage.AncestorOrSelf(2) i think you should end up at the page just below Home. (assuming that Home is the "root" of the site and everything is below that.
Also you could just look at the Level of the current node if all you want is to know if you are at the root.
Yes the root is level one but what am trying to do here is to check if for example a i have a multilingual website where i need to change the sequence of the sentence so i would like to check if my current node is an ancestor of whatever language root node assuming all of them are on level 1.
CurrentPage isAncestorOrSelf
How do i get to check if the currentPage am on is an Ancestor of a specified RootNode ?
the root is level 1
if you choose @CurrentPage.AncestorOrSelf(2) i think you should end up at the page just below Home. (assuming that Home is the "root" of the site and everything is below that.
Also you could just look at the Level of the current node if all you want is to know if you are at the root.
Rob
Hi Rob,
Yes the root is level one but what am trying to do here is to check if for example a i have a multilingual website where i need to change the sequence of the sentence so i would like to check if my current node is an ancestor of whatever language root node assuming all of them are on level 1.
Did something similar in xslt
is working on a reply...