How can I display a Media picker image

笑着哭i 提交于 2019-12-04 14:49:55

Try using the umbraco image item if using webforms or umbraco media for mvc

<img src="@Umbraco.Media(model.articleImageOne).Url" alt="">

or

<umbraco:Image field="articleImageOne" runat="server" />

This worked for me

<umbraco:Macro runat="server" language="cshtml">
<img src="@Model.MediaById(Model.topleftsmall).umbracoFile" alt=""/>
</umbraco:Macro>

please note I was trying this on firefox 20.0.1, and the save just didnt work properly.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!