It is being used inside an XSLT template which needs to know what type of node it's parent is. In fact it is being used in an IF statement test. So, it is looking at the parent of the current node. The current node is not (necessarily) the same as the $currentPage.
Of course, your solution works as well, but not in my specific situation :-)
Okay, makes sense, as you are using it on nodes that's being, in some way, iterated through. I thought that you needed to find it from the current page that you where currently standing on :)
Get NodeTypeAlias of parent node
Using the new schema / 4.6.1 - how do I find out the "Node Type Alias" of the parent node?
I just know this is going to be a jolly simple answer ... but my excuse is it's been a long weekend!
Hi Gordon
Try this:
Does that help?
/Kim A
That gives an error - "Expected the end of expression, found '('"
If I remove the "$currentPage/../" then it is OK!?
Ahh my bad Gordon. Was a bit to quick there.
Try this instead:
/Kim A
I think we got there at the same time!!
I have used -
Easy when you know how!! :-)
So you are doing this inside of a loop or?
Otherwise I'm quite sure you'd need the $currentPage/ in the selection as well.
/Kim A
It is being used inside an XSLT template which needs to know what type of node it's parent is. In fact it is being used in an IF statement test. So, it is looking at the parent of the current node. The current node is not (necessarily) the same as the $currentPage.
Of course, your solution works as well, but not in my specific situation :-)
Okay, makes sense, as you are using it on nodes that's being, in some way, iterated through. I thought that you needed to find it from the current page that you where currently standing on :)
/Kim A
Page specifically, no ... (parent of) current node, yes :-)
It's a shame I can't mark my own post as the solution ... I'll be getting an email soon saying there's no solution for my post!! ;-)
is working on a reply...