Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ed Bishop 53 posts 203 karma points
    Nov 19, 2010 @ 16:56
    Ed Bishop
    0

    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

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Nov 19, 2010 @ 17:45
    Tom Fulton
    0

    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='...' />

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

Please Sign in or register to post replies