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,
How can I refer images (media picker type) in my templates? xslt (macro) is the only way to achieve this?
Thanks,
Aradhya
You can do inline xslt in the template - see the wiki here
E.g.
< umbraco:Item runat="server" field="mediaItem" xslt="concat('<img src="', umbraco.library:GetMedia({0},'true')/data[@alias='umbracoFile'], '" />')" xsltDisableEscaping="true" />
>Tommy
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Referring image in templates
Hi,
How can I refer images (media picker type) in my templates? xslt (macro) is the only way to achieve this?
Thanks,
Aradhya
You can do inline xslt in the template - see the wiki here
E.g.
>Tommy
is working on a reply...