Hi all i'm building a site where i need to test if a node belongs to a parent node, so for example say i have a News List with Monthly folders, i need to see if a news item belongs to a certain monthly folder, so something like does news item 1 sit under the january folder. I know you can get the parent node id but how can i test to see if a node belongs to that particular parent node?
How to test if node belongs to parents node
Hi all i'm building a site where i need to test if a node belongs to a parent node, so for example say i have a News List with Monthly folders, i need to see if a news item belongs to a certain monthly folder, so something like does news item 1 sit under the january folder. I know you can get the parent node id but how can i test to see if a node belongs to that particular parent node?
Hi Vincent,
Inside your <xsl:for-each> loop, you can try the following:
I've used @nodeName as an example, but you can use whatever else is available - probably @nodeTypeAlias is better?
Cheers, Lee
Hi Lee cheers for that, i changed it round a bit but that got me started!!
is working on a reply...