Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I've got a macro that takes a parameter. The parameter value is not getting to the macro.
The call is:
<a href="~/"><umbraco:macro runat="server" alias="siteImage" theimage="crimson.gif"/></a>
The macro is:
<xsl:template match="/"> <xsl:variable name="theImage" select="/macro/theimage"/> <img src='media/site/{$theImage}' alt='The Crimson Thread' /> </xsl:template>
The template gets called, but the value of 'theImage' is empty. I took this code from another of my sites running under 4.0 where it works.
Thanks for any insight - Jon
On the macro, you have to go to the parameters tab and create the param there.
That fixed it. Thank you.
Thanks! I found this nowhere else but here!
is working on a reply...
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.
Continue discussion
Macro parameter problem with 4.5
I've got a macro that takes a parameter. The parameter value is not getting to the macro.
The call is:
<a href="~/"><umbraco:macro runat="server" alias="siteImage" theimage="crimson.gif"/></a>
The macro is:
The template gets called, but the value of 'theImage' is empty. I took this code from another of my sites running under 4.0 where it works.
Thanks for any insight - Jon
On the macro, you have to go to the parameters tab and create the param there.
That fixed it. Thank you.
Thanks! I found this nowhere else but here!
is working on a reply...
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.