1
我已阅读了很多帖子,但对我来说没有任何工作。任务是相当简单 - 我需要覆盖核心模板审查/产品/视图/ list.phtml与我自己,比方说my_list.phtml不能覆盖在magento块模板
我的配置如下。 Layout.xml(头修改工作)
<layout version="0.1.0">
<review_product_list>
<reference name="head">
..
</reference>
<reference name="product.info">
<block type="review/product_view_list" name="myreview.product_additional_data"
as="myreview_product_additional_data" template="review/product/view/my_list.phtml"/>
</reference>
</review_product_list>
的Config.xml
<frontend>
<layout>
<updates>
<myreview>
<file>myreview/layout.xml</file>
</myreview>
</updates>
</layout>
</frontend>
我可以改变的核心文件review.xml和它的作品如预期,该行
<block type="review/product_view_list" name="product.info.product_additional_data" as="product_additional_data" template="review/product/view/list.phtml">
但这不是我期待的。
如果我更改 参考名称=“product.info” 至 参考名称=“内容”我的模板显示,但没有到位。如果我尝试调试,则会呈现块。
这工作,谢谢! – dardarlt
tpl模板的简称?我们是否也可以改变块的类型? –