Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...