Copied to clipboard

Flag this post as spam?

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


  • umbracov 38 posts 58 karma points
    Apr 21, 2011 @ 20:53
    umbracov
    0

    Rendering user entered HTML using XSLT

    I have content property 'subHeaderImage' of type RTE where the user inputs the image tag with maps. I am using xslt-macro to render the image.

    The following gives me Error parsing XSLT file: \xslt\DispIntHeaderImg.xslt

    <xsl:value-of select="umbraco.library:RenderTemplate($currentPage/subHeaderImage)" />


    Using the following code return the html iteself.

    <xsl:value-of select="$currentPage/subHeaderImage"/>

     

    Is there a way to render the html? Thanks for your thoughts and help.

  • Berto 105 posts 177 karma points
    Apr 21, 2011 @ 20:59
    Berto
    0

    Try it like this

    <xsl:value-of select="$currentPage/subHeaderImagedisable-output-escaping="yes"/>

     

  • umbracov 38 posts 58 karma points
    Apr 21, 2011 @ 21:02
    umbracov
    0

    Excellent, worked like a charm. ......so simple and yet I had been looking for it everywhere. Glad I decided to post it on the forum. Thanks for your quick response.

  • Berto 105 posts 177 karma points
    Apr 21, 2011 @ 21:10
    Berto
    0

    And tip (this happen's to me a lot of times), if you forget the name of the property disable-output-escaping all the time, so what i do is on the xslt edit,  iclick on the "Insert xslt:value-of" and in the modal pop-up just check the Disable Output check box and click insert... 

    Gald i could help

  • 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