【问题标题】:Adding a custom layout to Magento 1.9向 Magento 1.9 添加自定义布局
【发布时间】:2022-12-15 04:36:00
【问题描述】:

我正在尝试向我们的 Magento 1 平台添加自定义布局。我按照此页面上的说明进行操作,https://blog.magestore.com/how-to-add-new-layout-template-for-magento/ 但我没有成功。我正在寻找有关如何完成此任务的建议和说明。

这是我做的配置文件

<?xml version="1.0" encoding="utf-8"?>
<config>
<modules>
<DFSCopper_Page>
<version>0.1.0</version>
</DFSCopper_Page>
</modules>
<global>
<page>
<layouts>
<one_column_wo_name module="page" translate="label">
<label>1 column without name</label>
<template>page/one_column_wo_name.phtml</template>
<layout_handle>one_column_wo_name</layout_handle>
</one_column_wo_name>
</layouts>
</page>
</global>
</config>

当我添加这个文件和新模板 phtml 文件时没有任何改变。添加 Store_Page.xml 文件的第二步,该文件已存在于该文件夹中。这是我感到困惑的唯一步骤。

【问题讨论】:

    标签: templates magento-1.9


    【解决方案1】:

    您是否尝试过在创建新文件后清除缓存?

    【讨论】:

      猜你喜欢
      • 2018-10-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-29
      • 1970-01-01
      • 1970-01-01
      • 2012-10-21
      • 1970-01-01
      相关资源
      最近更新 更多