Php Magento模块自定义块在产品详细信息页面中工作,但在列表和网格页面中不工作?

Php Magento模块自定义块在产品详细信息页面中工作,但在列表和网格页面中不工作?,php,xml,magento-1.7,Php,Xml,Magento 1.7,我正在写一个模块。在我的模块中,假设我有mymodule.xml,我想在这个块之后插入我自己的块 <catalog_product_view> <reference name="product.info"> <block type="test/test" name="test" as="other" template="test/test.phtml" > <block type="test/test" name="t

我正在写一个模块。在我的模块中,假设我有
mymodule.xml
,我想在这个块之后插入我自己的块

<catalog_product_view>
    <reference name="product.info">
      <block type="test/test" name="test" as="other" template="test/test.phtml" >
        <block type="test/test" name="test_info" as="test_info" template="test/testinfo.phtml" />
      </block>
    </reference>
  </catalog_product_view>

当我要检查列表视图中的更改时,我看不到任何更改(在清除缓存后)。有人能告诉我如何解决这个问题吗。任何帮助和建议都是值得赞赏的。谢谢..

嗯,您在类别页面(列表页面)中使用的xml代码不正确。 应该是这样的:

<catalog_category_default>
<reference name="category.products">
    <block type="test/test" name="test" as="other" template="test/test.phtml" >
        <block type="test/test" name="test_info" as="test_info" template="test/testinfo.phtml" />
    </block>
</reference></catalog_category_default>

<catalog_category_layered>
<reference name="category.products">
   <block type="test/test" name="test" as="other" template="test/test.phtml" >
    <block type="test/test" name="test_info" as="test_info" template="test/testinfo.phtml" />
  </block>
</reference>  </catalog_category_layered>

请试试这个。如果还有什么,请与我联系。
谢谢。

你是这样称呼那个孩子的吗$此->getChildHtml(“其他”);
<catalog_category_default>
<reference name="category.products">
    <block type="test/test" name="test" as="other" template="test/test.phtml" >
        <block type="test/test" name="test_info" as="test_info" template="test/testinfo.phtml" />
    </block>
</reference></catalog_category_default>

<catalog_category_layered>
<reference name="category.products">
   <block type="test/test" name="test" as="other" template="test/test.phtml" >
    <block type="test/test" name="test_info" as="test_info" template="test/testinfo.phtml" />
  </block>
</reference>  </catalog_category_layered>