Looking for some help again! Ive got some xslt to display 2 random nodes from root i.e Home, Settings with my structure but i want it to display a random 2 nodes (just nodename) for a specific doc type alias in this case 'AProperty'.
The nodes for AProperty can be on multiple levels though so unsure how to seahc the whole node structure in one instead of having [@level = 2] etc.
Hope makes sense, my basic structure goes, it's based on properties in locations, each location however can have sub locations which also contain 'properties'
Hello, maybe you can use <xsl:for-each select="$root/descendant-or-self::* [@isDoc and @nodeTypeAlias = 'AProperty'] "> (see example) or did you mean a property on the node?
Display child node at any level
Hi guys
Looking for some help again! Ive got some xslt to display 2 random nodes from root i.e Home, Settings with my structure but i want it to display a random 2 nodes (just nodename) for a specific doc type alias in this case 'AProperty'.
The nodes for AProperty can be on multiple levels though so unsure how to seahc the whole node structure in one instead of having [@level = 2] etc.
Hope makes sense, my basic structure goes, it's based on properties in locations, each location however can have sub locations which also contain 'properties'
Home
- Location Page
- AProperty Page
- Location Page
-AProperty Page
Hello, maybe you can use <xsl:for-each select="$root/descendant-or-self::* [@isDoc and @nodeTypeAlias = 'AProperty'] "> (see example) or did you mean a property on the node?
is working on a reply...