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 530 posts 3521 karma points MVP 2x 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 530 posts 3521 karma points MVP 2x 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.

     

     

  • 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