Copied to clipboard

Flag this post as spam?

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


  • Inmedia 124 posts 176 karma points
    Sep 28, 2010 @ 09:32
    Inmedia
    0

    List nodes with property set to true?

    Hi fellow Umbracians

    I need a little help on creating what probably is an easy XSLT macro.

    I have a node type, with a proberties that can be set to true or false.

    What I want is an XSLT that lists all nodes from current page with that property set to "true".

    I know this is pretty simple to do, but im a total noob at XSLT, so I really hope some of you guys can help me out?

     

    // Mikkel

  • Malte Baden Hansen 61 posts 158 karma points
    Sep 28, 2010 @ 10:52
    Malte Baden Hansen
    1

    Try like this.

    <xsl:for-each select="$currentPage/* [string(yourTrueFalsePropertyAlias) = '1' and @isDoc]
    ">

    =)

  • Inmedia 124 posts 176 karma points
    Sep 28, 2010 @ 11:03
    Inmedia
    0

    Thx.... That did it :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies