Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6853633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:32:07+00:00 2026-05-27T01:32:07+00:00

I am trying to get my module to replace the ‘media’ section on list

  • 0

I am trying to get my module to replace the ‘media’ section on list and grid view on category list pages with my own new one, if there is a hole in Mage knowledge its the layout xml so if someone could help 🙂 I am using,

<layout>    
    <catalog_category_view>
        <reference name="head">
            <action method="addItem"><type>skin_js</type><name>js/imageover.js</name></action>
        </reference>
        <reference name="product_list">
            <block type="catalog/product_view_media" name="product.info.media" as="media" template="lewis/imageover/media.phtml"/>
        </reference>
    </catalog_category_view>
</layout>

but it’s not working? :s debug toolbar shows my layout is being called but the changed aren’t being made.

Edit: Ok with some help from the post below I got it to read my layout, but turns out on the category_list page Magento doesn’t use media template the image call is made in the list.phtml file, so the only way to change it appears to be to replace that whole template file. (which seems very extreme!) is there another way to replace the image on the category list page?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:32:08+00:00Added an answer on May 27, 2026 at 1:32 am

    What you’ve done here is effectively reinstantiate the media block with your template. If your changes are solely template-based, you can just <reference name="product.info.media"> the existing block instance from the layout and call <action method="setTemplate"><template>lewis/imageover/media.phtml</...>. If you have your module has a custom block class, you’ll need to use your module’s block class group. For more on class group notation, the factory method, etc, see Alan Storm’s article on the Magento config.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to get this module to work and no matter what I've
I'm trying to get a kernel module to load at boot. If I run
i have to get static information from one 'module' to another. I'm trying to
im trying to get Python to load a module depening on what page is
I'm trying to get the nodeunit module working within a coffeescript project but can't
I'm trying to get the argparse module working in Python. My problem is that
I am trying to get a module to import, but only if an object
I'm trying to get the name of a calling module by using inspect. When
I get the following error when trying to use: typedef QSharedPointer<Test> CTest CTest* Module::function(params)
I've been trying to get my first module to work, but keep getting Fatal

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.