Skip to content

Instantly share code, notes, and snippets.

@rsleggett
Created February 11, 2013 22:39
Show Gist options
  • Save rsleggett/4758279 to your computer and use it in GitHub Desktop.
Save rsleggett/4758279 to your computer and use it in GitHub Desktop.
DD4T UI 2012 for a Multimedia Link field
@using DD4T.Mvc.Html
@model DD4T.ContentModel.IComponentPresentation
<div>
@Html.SiteEditComponentPresentation(Model)
<div class="image">
@Html.SiteEditField(Model, Model.Component.Fields["image"])
<img src="@Model.Component.Fields["image"].LinkedComponentValues[0].MultiMedia.Url" alt="blah"/>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment