I think maybe the only issue you have is a lower case f in "umbracoFile", try this:
if (CurrentPage.HasValue("image_1")){
var dynamicMediaItem = Umbraco.Media(CurrentPage.image_1);
<img src="@dynamicMediaItem.umbracoFile" alt="@dynamicMediaItem.Name"/>
}
That's great to hear, actually I had never tried it before in a MacroPartialView as I wrote it in v4.11 (for Views and Partials) long before MacroPartialViews existed :-)
Media Picker
Hi I have tryed this code but
I only get this out:
Hi,
I think maybe the only issue you have is a lower case f in "umbracoFile", try this:
Jeavon
Havent used v6 yet but i guess you need to do somthing like this change umbracofile to umbracoFile with uppercase "F"
@Jeavon you're too quick!! :)
@Fuji, I wrote the documentation, so wanted to check it was right :-)
Yes yes ;-))) thank you
it's a really good documentation. It was only when I found it I could figure it out;-) thank you so much ;-)
That's great to hear, actually I had never tried it before in a MacroPartialView as I wrote it in v4.11 (for Views and Partials) long before MacroPartialViews existed :-)
is working on a reply...