Created
February 11, 2013 22:39
-
-
Save rsleggett/4758279 to your computer and use it in GitHub Desktop.
DD4T UI 2012 for a Multimedia Link field
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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