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
I am trying to render an image that is in the Media Library. However using
<img src="@Model.Value("carouselImage1")" />
Does not work. How do I get the Url of the image?
Hi Lee,
Please try following:-
@{ var image = Model.Value<IPublishedContent>("carouselImage1"); <img src="@image.Url" /> }
Hope this solves your issue.
Cheers,
Shaishav
Excellent, Thank you.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Render Image from Media
I am trying to render an image that is in the Media Library. However using
Does not work. How do I get the Url of the image?
Hi Lee,
Please try following:-
Hope this solves your issue.
Cheers,
Shaishav
Excellent, Thank you.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.