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 have the following code. "gorsel" is a media picker. I cannot get the URL of the media picker.
Need help please. Thanks :)
@inherits Umbraco.Web.Mvc.UmbracoViewPage var items = Model.GetPropertyValue<IEnumerable<IPublishedContent>>("paragraf"); @foreach (var item in items) { var gorsel = item.GetPropertyValue("gorsel"); <div class="text-image-content closed"> <h2>@item.GetPropertyValue("araBaslik")</h2> <div class="text-container"> <div class="clear"></div> <div class="img-align-left"><img src="@Umbraco.Media(gorsel).UmbracoFile" alt="" title="" /></div> @Html.Raw(item.GetPropertyValue("metin")) <div class="clear"></div> </div> </div> }
found the solution myself :)
the media was not selected and returning null..
after selecting a media it worked..
Thx
What did you do to select the media ?
Can you please share the code you used to render the media picker, I'm having the same issue.
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
Nested Content Media Picker Issue
I have the following code. "gorsel" is a media picker. I cannot get the URL of the media picker.
Need help please. Thanks :)
found the solution myself :)
the media was not selected and returning null..
after selecting a media it worked..
Thx
What did you do to select the media ?
Can you please share the code you used to render the media picker, I'm having the same issue.
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.