/ Published in: C#

This snippet applies if the datatype is DAMP and data is stored as full xml.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
{ //if mediatype is a file <a href="@Model.media.mediaItem.File.umbracoFile">file</a> //if mediatype is an image <img alt="pdf" height="70" src="@Model.media.mediaItem.Image.umbracoFile" /> }
Comments
