Copied to clipboard

Flag this post as spam?

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


  • kukuwka 75 posts 96 karma points
    Oct 10, 2010 @ 10:58
    kukuwka
    0

    How pass variables using RenderMacroContent

    Hi,
    How can I pass variable using RenderMacroContent?
    Example:

    <xsl:variable name="Url" select="google.com">

    <xsl:value-of select="umbraco.library:RenderMacroContent('&lt;?UMBRACO_MACRO macroAlias=&quot;Haeder&quot;  Url=&quot;[$Url]&quot;  &gt;&lt;/?UMBRACO_MACRO&gt;', $currentPage/@id)"
        disable-output-escaping="yes"/>

    Thanks,

    kukuwka

  • Sebastiaan Janssen 5061 posts 15544 karma points MVP admin hq
    Oct 10, 2010 @ 17:27
    Sebastiaan Janssen
    0

    Try concatenating the string: 

    <xsl:value-of select="umbraco.library:RenderMacroContent(concat('&lt;?UMBRACO_MACRO macroAlias=&quot;Haeder&quot;  Url=&quot;[', $Url, ']&quot;  &gt;&lt;/?UMBRACO_MACRO&gt;'), $currentPage/@id)" disable-output-escaping="yes"/>
  • kukuwka 75 posts 96 karma points
    Oct 11, 2010 @ 14:33
    kukuwka
    0

    Thank you.

    It works.

  • 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