Copied to clipboard

Flag this post as spam?

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


  • Kristian Hollund 4 posts 24 karma points
    Jul 03, 2012 @ 14:05
    Kristian Hollund
    0

    Using images from media picker, outputs tilde path

    I'm using this code to display an image from the media picker highlightImage on the front page of my site:

    <umbraco:Item runat="server" field="highlightImage" xslt="concat('&lt;img src=&quot;', umbraco.library:GetMedia({0}, true())/umbracoFile,'&quot; /&gt;')" xsltDisableEscaping="true"/></a>

    The path I get is correct except it has a tilde instead of the root path, see below. I've been searching FOREVER and can't find out what to do to fix it.

    <img src="~/media/587/work_at_ross.jpg" />

  • Kristian Hollund 4 posts 24 karma points
    Jul 04, 2012 @ 13:11
    Kristian Hollund
    0

    I have tried this using the media uploader too, I still get that tilde character. I have also tried wrapping it in some url Encode thing that doesn't seem to work. Any ideas?

Please Sign in or register to post replies

Write your reply to:

Draft