Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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
is working on a reply...