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
Hi.
I am trying to parse a variable to a Macro using RequestQuery String this way:
<umbraco:Macro AreaID="{umbraco.library:RequestQueryString('areaid')}" Alias="[XSLT]AreaHeader" runat="server"></umbraco:Macro>
Problem is that instead of the real value i am getting only text "{umbraco.library:RequestQueryString('areaid')}".
Is it possible to get a querystring variable value inline? How?
Thanks for your help!
Hi Ivan,
Yes - you can do that with the "Advanced Macro Parameter Syntax" (http://our.umbraco.org/wiki/reference/templates/umbracomacro-element/macro-parameters/advanced-macro-parameter-syntax)
In your case you'd use [@areaid] in the attribute:
<umbraco:Macro AreaID="[@areaid]" Alias="[XSLT]AreaHeader" runat="server"></umbraco:Macro>
/Chriztian
Thanks Chriztian!Best Regards, Ivan
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Inline Macro with dynamic parameter?
Hi.
I am trying to parse a variable to a Macro using RequestQuery String this way:
Problem is that instead of the real value i am getting only text "{umbraco.library:RequestQueryString('areaid')}".
Is it possible to get a querystring variable value inline? How?
Thanks for your help!
Hi Ivan,
Yes - you can do that with the "Advanced Macro Parameter Syntax" (http://our.umbraco.org/wiki/reference/templates/umbracomacro-element/macro-parameters/advanced-macro-parameter-syntax)
In your case you'd use [@areaid] in the attribute:
/Chriztian
Thanks Chriztian!
Best Regards, Ivan
is working on a reply...