get all child nodes of the specified document type
Hi experts,
I create a new document type dtAAAA, and add some data and publish. Now I want to display all nodes of this type to any webpages of umbraco. I tried the following loop, but I don't get any data
get all child nodes of the specified document type
Hi experts,
I create a new document type dtAAAA, and add some data and publish. Now I want to display all nodes of this type to any webpages of umbraco. I tried the following loop, but I don't get any data
<xsl:for-each select="$currentPage/ancestor-or-self::* [@isDoc]/dtAAAA/* [@isDoc]">
...
</xsl:for-each>
Thanks a lot
You need to know your root node or the level it's at
<xsl:for-each select="$currentPage/ancestor-or-self::*[@isDoc and @level=1]/descendant::dtAAAA[@isDoc]">
...
</xsl:for-each>
is working on a reply...