在Magento后端添加新图像属性,并获取该新图像属性的所有图像

在Magento后端添加新图像属性,并获取该新图像属性的所有图像,magento,magento-1.7,magento-1.6,Magento,Magento 1.7,Magento 1.6,通过使用catalog=>attributes=>manage属性创建新属性,我在magento-admin中添加了新的图像属性,新属性显示在admin中 但问题是,我如何才能得到这个属性的所有图像 我添加了Pos图像属性。现在我希望此属性的所有图像都使用编码。请帮助 <?$_images = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();?>

通过使用catalog=>attributes=>manage属性创建新属性,我在magento-admin中添加了新的图像属性,新属性显示在admin中

但问题是,我如何才能得到这个属性的所有图像

我添加了Pos图像属性。现在我希望此属性的所有图像都使用编码。请帮助
 <?$_images = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();?>
    <?if($_images){?>           
       <?$i=0; foreach($_images as $_image){ $i++;?>
          <a href="#"><img src="<?=$this->helper('catalog/image')->init($_product, 'thumbnail', $_image->getFile())->resize(200, 130); ?>" width="200" height="130" alt="<?=$this->htmlEscape($_image->getLabel());?>" title="<?=$this->htmlEscape($_image->getLabel());?>" /></a>              
           <a href="#"><img src="<?=$this->helper('catalog/image')->init($_product, 'small_image', $_image->getFile())->resize(200, 130); ?>" width="200" height="130" alt="<?=$this->htmlEscape($_image->getLabel());?>" title="<?=$this->htmlEscape($_image->getLabel());?>" /></a>               
       <?}?>
    <?}?>

您可以使用此代码获取图像更改标签以获取不同的图像如果是缩略图,则使用缩略图

获取此属性的所有图像?对于特定产品的含义?是的,我想获取特定产品的图像。我想获取baseimage、smallimage、thumbnail、,posimage.yes谢谢你的帮助dude.新的图像属性图像出现在产品数据中。这解决了我的问题。谢谢。如果你觉得我的答案有帮助,请接受我的答案。如果你觉得我的答案有帮助,请接受我的答案。我们可以检查图像属性类型是否为缩略图、图像、,使用特定产品编码的pos图像您可以签入$\u product object只需编写$\u product->getData()即可获得特定产品的所有信息您可以告诉我如何创建主题og magento。从哪里开始。我知道magento的基本结构。提前谢谢。如果您有不同的问题,请分别提问