Copied to clipboard

Flag this post as spam?

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


  • John Thiriet 4 posts 24 karma points
    Jul 21, 2010 @ 19:02
    John Thiriet
    0

    GetMedia gives me a relative url and I need an absolute one

    Hello everyone.
    I'm new to Umbraco and i've setup a fresh 4.5 installation today. I use the new XSLT schema.
    I'm trying to get the path from an image stored in the media library.
    So far i've got the path using this :
      <xsl:variable name="mediaNode" select="umbraco.library:GetMedia($mediaNodeId, 'false')" />
      <img src="{$mediaNode/*/umbracoFile}" />

    The url given back to me looks like this :

    ~/media/121/image.png

    The path is good but I can't find a way to resolve the full url of the image in order to get a path like :

    /umbracoinstallationdirectory/media/121/image.png

    I'd be grateful if someone had an idea on how to do this.

    Thanks.

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jul 21, 2010 @ 19:19
    Stefan Kip
    1

    I think you should try Umbraco 4.5.1 which was released today: http://umbraco.codeplex.com/releases/view/48015

  • John Thiriet 4 posts 24 karma points
    Jul 22, 2010 @ 12:29
    John Thiriet
    0

    First thank you for the answer.

    It's true that the updates says it solves the issue but I can't get the update work correctly.

    Is there a recommended way to apply the update on an existing installation without breaking the site ?

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jul 22, 2010 @ 12:44
    Lee Kelleher
    0

    Hi John,

    Just a reminder that yesterdays release was a beta (v4.5.1-beta) ... the official v4.5.1 release should be tomorrow (or early next week).

    If you want to go ahead with upgrading to the beta, then here's how I did it yesterday.

    Download the beta zip, extract it.  Copy the following folders over your existing v.4.5.0 site:  /bin, /install, /umbraco, /umbraco_client

    Then in your web-browser, go to: yourdomain.com/install - to run the upgrade script ... I don't think there are any database changes in this beta, but not sure - always better to run the install/upgrade script.

    Good luck, Lee.

  • John Thiriet 4 posts 24 karma points
    Jul 22, 2010 @ 14:27
    John Thiriet
    0

    Hi Lee,

    As am not in a hurry i'll wait the final version before patching.

    Thank you for giving me the steps to follow for the upgrade.

    See you.

Please Sign in or register to post replies

Write your reply to:

Draft