#19952: MediaLibraryPicker Summary

Work Item: 19952
This commit is contained in:
agriffard 2013-10-25 15:53:47 +02:00
parent 3e5c9cf951
commit 859b2316e9
3 changed files with 8 additions and 0 deletions

View File

@ -30,6 +30,7 @@ namespace Orchard.MediaLibrary.Drivers {
protected override DriverResult Display(ContentPart part, Fields.MediaLibraryPickerField field, string displayType, dynamic shapeHelper) {
return Combined(
ContentShape("Fields_MediaLibraryPicker", GetDifferentiator(field, part), () => shapeHelper.Fields_MediaLibraryPicker()),
ContentShape("Fields_MediaLibraryPicker_Summary", GetDifferentiator(field, part), () => shapeHelper.Fields_MediaLibraryPicker_Summary()),
ContentShape("Fields_MediaLibraryPicker_SummaryAdmin", GetDifferentiator(field, part), () => shapeHelper.Fields_MediaLibraryPicker_SummaryAdmin())
);
}

View File

@ -337,6 +337,9 @@
<ItemGroup>
<Content Include="Views\Parts\MediaLibrary.Navigation.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\Fields\MediaLibraryPicker.Summary.cshtml" />
</ItemGroup>
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>

View File

@ -86,6 +86,10 @@
<Place Fields_MediaLibraryPicker="Content:after"/>
</Match>
<Match DisplayType="Summary">
<Place Fields_MediaLibraryPicker_Summary="-"/>
</Match>
<Match DisplayType="SummaryAdmin">
<Place Fields_MediaLibraryPicker_SummaryAdmin="Content:after"/>
</Match>