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
When I use the media picker and then put my value into my html img src tag, the output is a 4 digit number.
How can i convert this into a url so that it will show the image?
If you are using Umbraco 7 without ModelsBuilder:
@{ var image = Model.Content.GetPropertyValue<IPublishedContent>("alias") if(image != null) { <img src="@image.Url" /> } }
Umbraco 8:
@{ var image = Model.Value<IPublishedContent>("alias"); if(image != null) { <img src="@image.Url" /> } }
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Convert media 4 digit number to a url using media picker
When I use the media picker and then put my value into my html img src tag, the output is a 4 digit number.
How can i convert this into a url so that it will show the image?
If you are using Umbraco 7 without ModelsBuilder:
Umbraco 8:
is working on a reply...