Copied to clipboard

Flag this post as spam?

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


  • Kory Doszpoly 19 posts 39 karma points
    Sep 06, 2012 @ 16:46
    Kory Doszpoly
    0

    Can't Get RenderMacroContent to Work Properly

    Someone was helping me with this, but I haven't heard from them in a couple of days. I'm trying to include a macro in an .xslt file. I was told that the only thing I had to do is replace SUB_MACRO_ALIAS_HERE with the the name of the file and that's it. The problem is that it won't render. The only thing I get is <Macro: (,)> printed to the screen.

    <xsl:value-of select="umbraco.library:RenderMacroContent(concat('&lt;?UMBRACO_MACRO macroAlias=&quot;SUB_MACRO_ALIAS_HERE&quot; source=&quot;', $source, '&quot; runat=&quot;server&quot; /&gt;'), $currentPage/@id)" disable-output-escaping="yes" />

    I'm running Umbraco 4. Thanks in advance.

  • Kory Doszpoly 19 posts 39 karma points
    Sep 07, 2012 @ 01:05
    Kory Doszpoly
    0

    OK, question answered in the other thread. Chriztian is the man. SUB_MACRO_ALIAS_HERE actually means that I was supposed to put the alias of the macro in there, not the file name that ends in .xslt but is NOT the alias of the macro. Who would have funked it?

  • 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