Magento 主题开发基础与默认主题

标签 magento themes default radix

我正在使用 Magento 1.6。我在base下创建了自己的主题(mytheme)。

所以我的文件结构是app/design/frontend/base/mytheme

我还可以在 app/design/frontend/default/mytheme 下开发我的主题

哪一个是最佳实践?使用 base/mytheme 而不是 default/mytheme 有何影响?

干杯, 埃迪

最佳答案

我确实不同意 Storm 先生的解决方案。

引用:http://www.magentocommerce.com/knowledge-base/entry/magentos-theme-hierarchy

这些文档建议您避免使用默认包(也作为基础包)

您必须创建自己的包“mytheme”并定义主题“default”

引用:http://info.magento.com/rs/magentocommerce/images/MagentoDesignGuide.pdf

"Please ignore legacy Magento instructions and tutorials that instruct you to create your custom theme inside of the default design package, or to edit files in the default/default directory directly.

Rather, the method that affords the best upgrade path for your theme and the most protection from accidental changes is to create a new designpackage and to create your custom theme inside of there."

所以正确答案是

app/design/frontend/your-package/default

不要使用:

app/design/frondend/default/你的主题

关于Magento 主题开发基础与默认主题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8112233/

相关文章:

c++ - C++ 中的 Switch 跳过所有情况并直接进入 t

C++ 对象声明和无默认构造函数(用户声明或隐式声明)

马根托。 OnBlockToHtml 之前-之后

html - 如何去掉页脚中的空格

silverlight-4.0 - 使用 Silverlight 4 应用主题

android - 包括在 android 中填充带有主题的 Activity

html - 页面右侧被 Inspect Element/Firebug 完全忽略,尽管它有 CSS 属性

c# - 为什么在 C# 中,在默认情况下切换循环中需要 break?

Magento 元关键字标签未显示

magento - 在 magento 中成功导入产品时调用函数