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.
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?
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('<img src="', umbraco.library:GetMedia({0}, true())/umbracoFile,'" />')" 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" />
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?
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.