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 all,
Is there a syntax to get the url of an image inline without using xslt?
I am envisioning something along the lines of:
<img alt="[#imageAltText]" href="[#library.NiceUrl(myImageAlias)]" />
Cheers,
Ed
Not that I know of without a macro, but you can use Inline XSLT:
<umbraco:Item field="myImageAlias" Xslt="umbraco.library:GetMedia({0},false())/umbracoFile" runat="server"></umbraco:Item>
And use insertBefore/After options to add the <img> tag or just wrap the above in <img src='...' />
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Is there a syntax to get the url of an image inline without using xslt
Hi all,
Is there a syntax to get the url of an image inline without using xslt?
I am envisioning something along the lines of:
<img alt="[#imageAltText]" href="[#library.NiceUrl(myImageAlias)]" />
Cheers,
Ed
Not that I know of without a macro, but you can use Inline XSLT:
<umbraco:Item field="myImageAlias" Xslt="umbraco.library:GetMedia({0},false())/umbracoFile" runat="server"></umbraco:Item>
And use insertBefore/After options to add the <img> tag or just wrap the above in <img src='...' />
is working on a reply...