Question

i'm using orchard 1.7 and made a content definition with some input fields and a media library picker field which should be used to simply choose a image which will be displayed in a list. (for example a list of references) i then created a projection with a query to display all the information. but i just don't get how i can access the media library picker image. i tried the different layout options, as well as finding the image with the shape tracing module. but there is no Property like MediaUrl, just the Name of the Field. so how can i display the image?

thanks

Was it helpful?

Solution

I finally figured out how to do this.

Basically you have to use the placement.info file of your theme. You need to add <Place Fields_MediaLibraryPicker="Content:1" /> <!-- this adds the field.. --> into your Summary.

So in my case my placement.info now contains this:

    <Match DisplayType="Summary">
       <Place Parts_Common_Metadata_Summary="-"/>
       <Place Parts_Title="-"/>
       <Place Fields_MediaLibraryPicker="Content:1" /> <!-- this adds the field.. -->       
   </Match>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top