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
How do I display the image from a media picker used in a partial view parameter?
This just gives the id.
I found it - copied and altered from another post. Here is the code in my partial view macro.
var imgId = Model.MacroParameters["image"];
var mediaItem = Umbraco.TypedMedia(imgId);
<img src="@mediaItem.GetPropertyValue("umbracoFile")" alt="@mediaItem.GetPropertyValue("Name")"/>
How to use Multiple Media Picker in Partial View
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted