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
Hi I have image in a nested content and with
myNestedContentItem.GetProperty("myImg").DataValue
I'm getting
"umb://media/781a5e051a3e4042bc4f184e968f1b4f"
how do I put this value to get valid html, something that will display the image in
<img src="~/images/12.jpg">
Thanks
Hi Sonja.
Your property "myImg", what is the datatype? MediaPicker?
In that case you could try:
var media = myNestedContentItem.GetPropertyValue<IPublishedContent>("myImg"); <img src='@media.Url'>
Best of luck to 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
Displaying image in Umbraco
Hi I have image in a nested content and with
I'm getting
how do I put this value to get valid html, something that will display the image in
Thanks
Hi Sonja.
Your property "myImg", what is the datatype? MediaPicker?
In that case you could try:
Best of luck to 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.