mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19897, 19898: Fixing Media Picker Field view
Work Items: 19898, 19897 --HG-- branch : 1.x
This commit is contained in:
@@ -5,13 +5,13 @@
|
||||
@{
|
||||
var field = (MediaLibraryPickerField) Model.ContentField;
|
||||
string name = field.DisplayName;
|
||||
var contentItems = field.ContentItems;
|
||||
var contents = field.MediaParts;
|
||||
}
|
||||
<section class="media-library-picker-field media-library-picker-field-@name.HtmlClassify()">
|
||||
<h3>@name</h3>
|
||||
@foreach(var contentItem in contentItems) {
|
||||
@foreach(var content in contents) {
|
||||
<div>
|
||||
@Display(BuildDisplay(contentItem, "Summary"))
|
||||
@Display(BuildDisplay(content, "Summary"))
|
||||
</div>
|
||||
}
|
||||
</section>
|
||||
|
Reference in New Issue
Block a user