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
In Umbraco 5, how do we render image using media picker field?
I have a property "heroImage" of Media Picker type. @Umbraco.Field("heroImage") only gives a long string. How do we get image url?
Thank you,
Suman
Just an update:
@Umbraco.GetMediaUrl(@DynamicModel.heroImage, "uploadedFile") did work for me.
Thanks!
Additionally you can do as mentioned here
Thanks PTamang
There is also official documentation. It's not complete yet, but might it might be good later on: http://our.umbraco.org/documentation/v501/Reference/Templating/Umbraco-Helpers/
Jeroen
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Display image using Media Picker data type
In Umbraco 5, how do we render image using media picker field?
I have a property "heroImage" of Media Picker type. @Umbraco.Field("heroImage") only gives a long string. How do we get image url?
Thank you,
Suman
Just an update:
@Umbraco.GetMediaUrl(@DynamicModel.heroImage, "uploadedFile") did work for me.
Thanks!
Additionally you can do as mentioned here
Thanks
PTamang
There is also official documentation. It's not complete yet, but might it might be good later on: http://our.umbraco.org/documentation/v501/Reference/Templating/Umbraco-Helpers/
Jeroen
is working on a reply...