migrationmediaorchardcmsorchardcms-1.7

MediaPicker field to MediaLibraryPicker migration in Orchard CMS


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?


Solution

  • 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>