Get value variable of Contrib.ImageField in other module

Topics: Customizing Orchard
Dec 6, 2013 at 10:50 AM
Edited Dec 6, 2013 at 10:50 AM
Hi everyone,

I was building Skywalker.Webshop module. I inserted image product by set up Contrib.ImageField module to, but that image just appear inside detail of product page. I would like to get that image of product to take it appear inside summary page. I tried to get that image by add reference Contrib.ImageField, but that thing.

Image

Thank you very much.

Cheer.
Developer
Dec 6, 2013 at 12:47 PM
Understand how placement works :
http://docs.orchardproject.net/Documentation/Understanding-placement-info

Change your placement.info in your theme. Ex :

<Match DisplayType="Summary">
<Place Fields_Contrib_Image="Content:5"/>
</Match>
Marked as answer by phuochuy on 12/6/2013 at 6:10 AM
Dec 6, 2013 at 1:44 PM
Edited Dec 6, 2013 at 2:10 PM
Thank you agriffard, ^_^

I will try to it.
Dec 6, 2013 at 2:10 PM
Good job. ^_^
Dec 6, 2013 at 3:28 PM
Hi agriffard,

How to separate between style summary page and detail page. If i override Contrib.ImageField in template, i can't override in my module. They same as a style.
Developer
Dec 6, 2013 at 4:25 PM
Then you need to learn how alternates work :
http://docs.orchardproject.net/Documentation/Alternates

The Shape Tracing tool can help you to understand them and create a template in your theme :
http://docs.orchardproject.net/Documentation/Customizing-Orchard-using-Designer-Helper-Tools


Also, may be you should try the new Media Library Picker Field to handle your image.