在主页magento中制作新的参考文献

时间:2012-07-27 09:13:12

标签: magento

I want make new reference in the red one

我想在红色区域中创建一个新引用,我在page.xml中添加了xml代码:

<block type="core/text_list" name="newreference" as="newreference"/>

然后我把这个脚本放到2columns-left.phtml

<div><?php getChildHtml('newreference') ?></div>

然后我也将这个xml放入page.xml

<reference name="newreference">
  <block type="catalog/product_under_wasis" name="home.product.under_wasis" template="catalog/product/under_wasis.phtml" />
</reference>

然后我将under_wasis.phtml放入文件夹catalog/product/,但结果仍然是错误can't read 'newreference',我该怎么办?

1 个答案:

答案 0 :(得分:1)

您的getChildHtml()来电不正确。

应该是:

<?php echo $this->getChildHtml('newreference') ?>