Copied to clipboard

Flag this post as spam?

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


  • Søren Kottal 713 posts 4571 karma points MVP 6x c-trib
    Mar 18, 2015 @ 14:08
    Søren Kottal
    0

    Xslt transformed email: Get node name by id

    I am trying to display the page from which the user submitted the form in my email.

     

    I am using this code

     <a>
                <xsl:attribute name="href"><xsl:value-of select="umbraco.library:NiceUrl($records//pageid)"/></xsl:attribute>
                <xsl:for-each select="umbraco.library:GetXmlNodeById($records//pageid)/node">
                  <xsl:value-of select="@nodeName" />
                </xsl:for-each>
              </a>
    

    But I only get an empty link to the node. Is there anything I'm missing?

  • Søren Kottal 713 posts 4571 karma points MVP 6x c-trib
    Mar 18, 2015 @ 14:17
    Søren Kottal
    100

    Aha, shouldn't have that "/node" appended :)

    <a>
                <xsl:attribute name="href"><xsl:value-of select="umbraco.library:NiceUrl($records//pageid)"/></xsl:attribute>
                <xsl:for-each select="umbraco.library:GetXmlNodeById($records//pageid)">
                  <xsl:value-of select="@nodeName" />
                </xsl:for-each>
              </a>

    Works now.

     

     

Please Sign in or register to post replies

Write your reply to:

Draft