Magento Forum

   
Getting product image types in the template
 
tilzinger
Sr. Member
 
Total Posts:  126
Joined:  2007-12-27
 

I added an image type labeled Detail Image to my product attribute group, and it’s attribute name/id is detail_image, however, I can’t seem to find that value within the template. The template in question is media.html, where it loops through and shows thumbnails of all the product images. As it’s looping through, I need to check to see if the image is a detail_image so I can apply a style to it different from the other thumbnails. I tried doing a var_dump on the $_image variable in the loop, but I didn’t see anything regarding types, and I tried guessing at some methods to run on it such as ->getType(), ->getAttribute(’type’), but nothing worked. So how do I get this value in the template loop?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
tilzinger
Sr. Member
 
Total Posts:  126
Joined:  2007-12-27
 

friendly bump.

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