Copied to clipboard

Flag this post as spam?

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


  • Charles Afford 1163 posts 1709 karma points
    Sep 25, 2013 @ 10:41
    Charles Afford
    0

    Calling a macro to render contour form deforming markup

    Hello :).

    In XSLT i am trying to call a macro that will render a contour form.  

    <xsl:value-of select="umbraco.library:Item($currentPage/@id,'mainContentRight')"/>

    This is killing my markup though :(.

    Any ideas?

    Charlie.  Thanks.

  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    Sep 25, 2013 @ 10:52
    Chriztian Steinmeier
    0

    Hi Charlie,

    The mainContentRight is an RTE field, right?

    You should be able to use the RenderMacroContent() method:

    <xsl:value-of select="umbraco.library:RenderMacroContent($currentPage/mainContentRight, $currentPage/@id)" disable-output-escaping="yes" />
    

    (You may actually also just be able to add the disable-output-escaping attribute on your existing <xsl:value-of /> ?)

    /Chriztian

  • Charles Afford 1163 posts 1709 karma points
    Sep 25, 2013 @ 11:03
    Charles Afford
    0

    Hi Chriztian,

    Thanks,  mainContentRight is a RTE field.

    I tried the xslt you supplied.  Thanks for that.  Its rendering buttons but not the actual form.  The mark-up is not breaking though :).  Thanks.  Charlie.

     

Please Sign in or register to post replies

Write your reply to:

Draft