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 5060 posts 15522 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.

Please Sign in or register to post replies

Write your reply to:

Draft