我正在使用 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/