【问题标题】:Magento 1.7 overwriting admin phtml file?Magento 1.7 覆盖管理 phtml 文件?
【发布时间】:2013-09-19 15:43:46
【问题描述】:

我正在尝试覆盖 app\design\adminhtml\default\default\template\page\head.phtml 模板文件,因此我在我的主题文件夹中创建了一个副本。该文件夹是 *app\design\adminhtml\default\my_theme\template\page\head.phtml*。

这不起作用,但为什么?管理区没有这种覆盖机制吗?

谢谢!

【问题讨论】:

    标签: magento


    【解决方案1】:

    是的,它在管理区域。转到管理面板 -> 系统 -> 配置 -> 常规选项卡 -> 设计 -> 在主题字段上,在主题、皮肤、布局和设计中填写您的主题名称。

    不要忘记清除 var/cache/ 并禁用系统中的所有缓存 -> 缓存管理*

    【讨论】:

      【解决方案2】:

      您创建了文件,但您是否告诉 Magento 使用您的 adminhtml 主题?

      Magento 在此处有执行此操作的文档: http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/admin/using_custom_admin_theme_templates

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-07-14
        • 1970-01-01
        • 2012-11-11
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多