Fields.MediaLibraryPicker Cannot be content links

Topics: Administration, General
Sep 24, 2013 at 4:36 PM
@using Orchard.ContentManagement
@using Orchard.MediaLibrary.Models
@{
    ImagePart imagePart = Model.ContentPart;
    var mediaPart = ((ContentItem)Model.ContentItem).As<MediaPart>();
    Orchard.ContentManagement.ContentItem contentItem = Model.ContentPart.ContentItem;
}           

@* Use a 200x200 profile in order to reuse the general thumbnail *@
<a href="@Url.ItemDisplayUrl(contentItem)" class="thumbnail">
    <img width="250" height="188" alt="@mediaPart.AlternateText" src="@Url.Content(mediaPart.MediaUrl)" />
</a>
Title inconsistent with Fields.MediaLibraryPicker links
Image
Coordinator
Sep 24, 2013 at 4:52 PM
Can give any hints about what your question is, please?