【发布时间】:2019-07-18 16:52:49
【问题描述】:
我正在为我的 Magento 项目创建一个新模块,其中有一些模板文件被附加到 >catalog_product_view catalog_category_default checkout_cart_index 和其他几个页面。目前,我已将模块配置文件放在 >design/fontend/base/default/layout/modulename_subfolder.xml 模板文件位于 >design/frontend/base/default/template/modulename/subfolder/my_product_view.phtml
我想将此 XML 和 phtml 文件移动到本地/模块名/子文件夹
我尝试在我的模块文件夹中创建相同的文件夹结构,但没有成功
design/fontend/base/default/layout/modulename_subfolder.xml
<layout version="0.1.0">
<catalog_product_view>
<reference name="content">
<block type="core/template" name="modulename_subfolder_product_view_block" template="modulename/subfolder/my_catalog_product_view.phtml" />
</reference>
</catalog_product_view>
</layout>
【问题讨论】:
标签: magento magento-1.9