【发布时间】:2012-09-05 21:57:59
【问题描述】:
在 Magento 中,我试图在 list.phtml 中显示一个 phtml 自定义模块。 我的 xml 看起来像这样:
<catalog_category_default>
<reference name="content">
<block type="my_prevenda/prevendalist" name="prevenda" as="prevenda" template="prevenda/prevenda_list.phtml" />
</reference>
</catalog_category_default>
我这样打电话:<?php echo $this->getChildHtml('prevenda') ?>
但是这个方法只存在于view.phtml中。 我如何出现在 list.phtml 中? 将保留产品名称
I Tks all!!
【问题讨论】: