无法使主题在目录视图上运行
我有一个主题,我正在尝试在远程服务器上工作,该服务器在我的本地副本上运行良好。这是针对 magento 1.4.1.1 的。在工作本地副本上,我在“base”包中有“theme144”,有 3 个商店视图; 。在管理中有 3 个设计更改(系统>设计),每个商店视图都有一个。这是我在管理中看到的与设计有关的唯一变化。在远程服务器上测试站点时,除目录视图之外的所有内容都使用正确的模板。 Magento 恢复为“base”包内的“默认”主题。所有图像以及模板似乎都使用其他主题。
我尝试在“系统”>“配置”>“外观、布局和模板设计”中明确指定主题,即使在工作本地副本上未设置这些主题。这让 magento 找到了图像和样式表,但它仍然使用“默认”模板。
在这一点上,我不知道还有什么地方可以给我提示为什么会发生这种情况。我消除了本地和远程站点之间在管理和模板文件结构方面的所有差异。
编辑:此问题还扩展到产品详细信息视图
I have theme i am trying to get work on a remote server that works fine on my local copy. This is for magento 1.4.1.1. On the working local copy I have 'theme144' within the 'base' package, there are 3 store views; . In the admin there are 3 design change(System>Design), one for each store view. These are the only changes i see in the admin pertaining to design. When testing the site on the remote server, the correct templates are being used for everything except the catalog view. Magento reverts to the 'default' theme inside the 'base' package. All the images, and it seems like the templates, are all using the other theme.
I've tried specifying the theme explicitly in System>Configuration>Design for the Skin, Layout, and Templates, even though on the working local copy these are not set. This got magento to find the images and style sheets, but it was still using 'default' for the templates.
At this point i don't where else to look to give me hints as to why this is happening. I eliminated all the differences between the local and remote site, both in the admin and the template file structure.
edit: This issue also extends to the product detail view
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在远程服务器上检查每个类别的设计选项卡,看看它是否在那里设置了主题,这将覆盖其他设置。
On the remote server check each category's design tab to see if it has a theme set there, that would override the other settings.
我猜这是 Magento 中报告的错误。显然,如果您将设计更改应用于不是“所有商店视图”的商店(例如本地计算机视图),则设计更改将无法正确传播。如果发生这种情况,您可以通过在根类别的“自定义设计”选项卡中选择模板来应用更新的设计(确保也将更改应用到子元素)。我恢复了这些更改,主题终于固定下来了。
http://www.magentocommerce.com/boards/viewthread/35761/
I guess this is a reported bug in Magento. Apparently if you apply the design change to a store that is not the 'All store views'(like the local machine view), then the design changes wont propagate properly. If this occurs, the you can get Magento apply the updated design by selecting the template in the 'Custom Design' tab on the root category(make sure to apply changes to child elements as well). I reverted these changes and the theme finally stuck.
http://www.magentocommerce.com/boards/viewthread/35761/