Copied to clipboard

Flag this post as spam?

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


  • Ray K. Ragan 4 posts 25 karma points
    Apr 11, 2011 @ 23:51
    Ray K. Ragan
    0

    Output from a fixed node

    I need a little help writing my XSLT for this.   I have a fixed node (e.g. I know the node ID and it doesn't change).  I need to output a variable from that node in my content page.  I'm not sure how to get started.

    Any help is appreciated.

    Respectfully,

    Ray K. Ragan

  • Eran Meir 401 posts 543 karma points
    Apr 11, 2011 @ 23:58
    Eran Meir
    0
    <xsl:variable name="node1" select="umbraco.library:GetXmlNodeById(numberofnode)" />
    <xsl:value-of select="$node1/nameofvariable" />

    good luck :)

  • Ray K. Ragan 4 posts 25 karma points
    Apr 12, 2011 @ 00:25
    Ray K. Ragan
    0

    @Eran, thank you.  Your suggestion got me pointed in the right direction.  As it turned out, it was super easy in my implementation:

      <xsl:value-of disable-output-escaping="yes" select="umbraco.library:GetXmlNodeById(myNodeNum)"/>

    I have a single data field that is HTML encoded.  This did the trick!


    Thanks,

    Ray

  • Eran Meir 401 posts 543 karma points
    Apr 12, 2011 @ 08:26
    Eran Meir
    0

    happy to hear that, don't forget to mark my post as solution

Please Sign in or register to post replies

Write your reply to:

Draft