Copied to clipboard

Flag this post as spam?

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


  • Gilad 2 posts 22 karma points
    May 17, 2012 @ 22:49
    Gilad
    0

    5.1 GetMediaUrl

    Hello

     

    Im trying to get the URL from an image field connected to the Media.

    While looping on CurrentPage.Childs child, when i try to get the image field called child.AtmoImage, i get a long string, but no url.

    Like i said, the image field connected to an image in Media.

     

    How can i get the URL of that image field on a child.

     

    Thanks

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    May 18, 2012 @ 16:12
    Jeroen Breuer
    0

    You can get the url with Umbraco.GetMediaUrl. See the documentation: http://our.umbraco.org/documentation/v501/Reference/Templating/Umbraco-Helpers/.

    In 5.2 you'll be able to do CurrentPage.Image.Url(). See this tweet.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft