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
Is it possible to retrieve an attribute from the tag in the temlate and use it inside xslt?
In the Template:
<umbraco:Macro Alias="ShowCroppedImage" runat="server" size="LARGE"></umbraco:Macro>
In the Xslt:
<xsl:param name="size"/>
Of course the 'size' parameter must be declared in the macro - or?
Any way to achieve this?
Yep, you should be able to just do:
<xsl:value-of select="/macro/size" />
To get the parameter passed, got to your macro, choose the "Parameters" tab, and add your size parameter as a string. Then you will be able to use it like Sebastiaan says.
Ah thanks Morten, I kind of assumed that the parameter was there already.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Getting attributes from the tag in the template?
Is it possible to retrieve an attribute from the tag in the temlate and use it inside xslt?
In the Template:
In the Xslt:
Of course the 'size' parameter must be declared in the macro - or?
Any way to achieve this?
Yep, you should be able to just do:
<xsl:value-of select="/macro/size" />
To get the parameter passed, got to your macro, choose the "Parameters" tab, and add your size parameter as a string. Then you will be able to use it like Sebastiaan says.
Ah thanks Morten, I kind of assumed that the parameter was there already.
is working on a reply...