Copied to clipboard

Flag this post as spam?

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


  • Simon 692 posts 1068 karma points
    Feb 27, 2015 @ 11:30
    Simon
    0

    Reading CMS Value into XSLT

    Hi,

    I am usng transformed xslt to send emails in umbraco.

    Now, I have created a workdlow to send an email to the user, and getting the tahnk you message from Umbraco CMS.

    But I have problem where I have a rich text editor, where admin input the email message, but when I read it in xslt:

     <xsl:variable name="thankyou" select="$currentPage/thankYouMessage" />
    <xsl:copy-of select="$thankyou"/>

    when the email is received, the HTML tags are ignored and will be shown for example liek: Dear User <p> Thank you for..........

    Do you have any idea how can I persist the HTML to be rendered in the email body?

    Thank you in advance.

    kind regards

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Feb 27, 2015 @ 12:11
    Dennis Aaen
    100

    Hi Simon,

    I think you need to add the disable-output-escaping to where you output the value.

    <xsl:variable name="thankyou" select="$currentPage/thankYouMessage" />
    <xsl:value-of select="$thankyou" disable-output-escaping="yes" />
    Hope this helps,
    /Dennis
  • Simon 692 posts 1068 karma points
    Feb 27, 2015 @ 14:13
    Simon
    0

    Thank you Dennis.

    Cheers mete :)

  • 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