Get value variable of Contrib.ImageField in other module

Topics: Customizing Orchard
Dec 6, 2013 at 9:50 AM
Edited Dec 6, 2013 at 9: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.


Thank you very much.

Dec 6, 2013 at 11:47 AM
Understand how placement works :

Change your in your theme. Ex :

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

I will try to it.
Dec 6, 2013 at 1:10 PM
Good job. ^_^
Dec 6, 2013 at 2: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.
Dec 6, 2013 at 3:25 PM
Then you need to learn how alternates work :

The Shape Tracing tool can help you to understand them and create a template in your theme :

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