Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • miken 21 posts 71 karma points
    Mar 18, 2013 @ 22:39
    miken
    0

    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

  • Sebastian Dammark 583 posts 1407 karma points
    Mar 18, 2013 @ 23:18
    Sebastian Dammark
    101

    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>

Please Sign in or register to post replies

Write your reply to:

Draft