Copied to clipboard

Flag this post as spam?

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


  • Jon Dunfee 199 posts 468 karma points
    Oct 22, 2014 @ 06:56
    Jon Dunfee
    0

    Macros in Content not Rendering in XSLTs (7.1.1)

    I'm using an XSLT for this particular macro and the output is not rendering the macros inserted in the content.  When I view source on the page I actually get the macro syntax (i.e. <?UMBRACO_MACRO macroAlias="ContentTout" mediaId="1209" />) when it should be rendering.  This is the first I've used XSLT to render content in U7, do I have to do something different now than pre-7?

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Oct 22, 2014 @ 08:01
    Dave Woestenborghs
    0

    Are you trying to render a macro from xslt ? Or is it the xslt macro it self that renders this output.

    Maybe you can show us an example of the xslt code and how you use it in your template ?

    Dave

  • Jon Dunfee 199 posts 468 karma points
    Oct 22, 2014 @ 15:30
    Jon Dunfee
    0

    Here's snippet from the XSLT:

    <xsl:template name="ListItem">
    <xsl:param name="faq" />
    <dt class="title">
    <xsl:attribute name="id"><xsl:value-of select="$faq/@id" /><xsl:text>A</xsl:text></xsl:attribute>
    <xsl:value-of select="$faq/question" disable-output-escaping="yes" />
    </dt>
    <dd class="dialog">
    <xsl:value-of select="$faq/answer" disable-output-escaping="yes" />
    </dd>
    </xsl:template>
    

    The answer may contain an insertable Video macro in the content. It doesn't render, it persists the UMBRACO_MACRO tag straight through.

Please Sign in or register to post replies

Write your reply to:

Draft