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...
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
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...
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.