Copied to clipboard

Flag this post as spam?

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


  • praveity 100 posts 125 karma points
    Jun 08, 2011 @ 12:10
    praveity
    0

    Select node based on the value of property field

    Hi to all,

    I am trying to get the node based on the property value set. The property is named showContent and it holds the node id from the datatype content picker.

    <xsl:value-of select="umbraco.library:GetXmlAll()/*[@isDoc and showContent = $currID]/@id"/>

    where $currID will be 1014 (i.e. selected node on content picker).

     

    Can I do this??

  • praveity 100 posts 125 karma points
    Jun 09, 2011 @ 11:04
    praveity
    0
        <xsl:value-of select="umbraco.library:GetXmlAll()//*[@isDoc][showContent = string($currID)][1]/@id"/>

    This worked out.

Please Sign in or register to post replies

Write your reply to:

Draft