Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to display the “media” template on products list, like in product view
 
glanum
Jr. Member
 
Avatar
Total Posts:  18
Joined:  2008-06-09
Avignon, France
 

Hi,

I’m trying to replace the thumbnail in the category view / products listing (catalog/product/list.phtml) by the “media” block that is called in the product view page like this :

$this->getChildHtml('media')
I added this call in the <div class="product-image">, replacing the original IMG tag.

And I tried adding some block definition in catalog.xml :

<block type="catalog/product_list_media" name="product_list_media" as="media" template="catalog/product/view/media.phtml"/>
right after
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">

So after a little bit of trial, I get passed a couple of errors, but so far, no call to the template, no images, just emptiness.

Does more need be done? or is it just that my code and xml is plain wrong?

If any XML Guru can provide his guidance, thanks already for looking into it smile
David.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top