We used to have this mediapicker field for thumbnails of a specific Content Type.

Old placement entry (1.6):

Fields_MediaPicker-Thumbnail="ImageArea:1"

enter image description here

New placement (1.7.1 after migration):

Fields_MediaLibraryPicker-Thumbnail="ImageArea:1"

enter image description here

The ones above basically render it in a zone called ImageArea. In the old version, media picker just rendered the image itself. In 1.7, it now renders the field title, filename and image.

Is there a way to specify to only render the image via placement without changing the template? Or is creating an alternate for medialibrarypicker field a better alternative?

有帮助吗?

解决方案

You can hide the parts of the Image that you don't want to display in placement.info :

<Match ContentType="Image">
<Place Parts_Common_Metadata_Summary="-"/>
<Place Parts_Common_Metadata="-"/>
<Place Parts_Title_Summary="-"/>  
</Match>

其他提示

I have just commited a change on the 1.7.X branch to be able to display the MediaLibraryPickerField in Summary : https://orchard.codeplex.com/workitem/19952

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top