简体   繁体   English

自定义Magento主题不起作用

[英]Custom Magento Theme not working

I have installed the latest version of Magento 1.6.0.0-rc2 and tried to install the package and theme which I had developed on Magento 1.5.x 我安装了最新版本的Magento 1.6.0.0-rc2并尝试安装我在Magento 1.5.x上开发的软件包和主题

The package has been installed in magento/app/design/frontend/packagename 该软件包已安装在magento / app / design / frontend / packagename中

I have also entered 'packagename' in System -> Configuration -> Design -> Current Package Name. 我还在系统 - >配置 - >设计 - >当前包名称中输入了'packagename'。

In app/design/frontend/packagename/default/layout/page.xml I have specified for default 'All Pages': 在app / design / frontend / packagename / default / layout / page.xml中我指定了默认的'All Pages':

<block type="page/html" name="root" output="toHtml" template="page/2columns-left.phtml">

Yet when I turn on template hints, I see that the main template being used is base/default/template/page/2columns-right.phtml. 然而,当我打开模板提示时,我看到正在使用的主模板是base / default / template / page / 2columns-right.phtml。

I have verified that design/frontend/packagename/default/template/page/2columns-left.phtml does exist. 我已经验证了design / frontend / packagename / default / template / page / 2columns-left.phtml确实存在。

I have been trying everything to debug this, but I can't seem to figure out where it is getting 2columns-right.phtml from (which config file). 我一直在尝试一切来调试这个,但我似乎无法弄清楚从哪个配置文件获取2columns-right.phtml。 I even tried to log the xml files loaded but they didnt show any of the custom xml files in the theme package being loaded. 我甚至尝试记录加载的xml文件,但它们没有显示正在加载的主题包中的任何自定义xml文件。

Any suggestions on what could be the problem or what to try ? 关于可能是什么问题或尝试什么的任何建议?

Thanks. 谢谢。

Edit: A couple of points. 编辑:几点。

  1. Cache is disabled. 缓存已禁用。
  2. The new package/theme displays, I'm able to see the css/images/js. 新的包/主题显示,我能够看到css / images / js。 Some of the template files with template hints enabled are from packagename, but the main ones seem to be from base. 一些启用了模板提示的模板文件来自packagename,但主要的模板文件似乎来自base。

Page template is not set just in page.xml, but even in catalog.xml, catalogsearch.xml, customer.xml... I mean, almost every pages have his own layout. 页面模板不仅仅在page.xml中设置,但即使在catalog.xml,catalogsearch.xml,customer.xml中......我的意思是,几乎每个页面都有自己的布局。
The layout set in page.xml is valid only for CMS pages. page.xml中设置的布局仅对CMS页面有效。 All other pages have other settings that override it. 所有其他页面都有其他设置覆盖它。
Which page are you looking at? 你在看哪个页面? A category page or a CMS page? 类别页面或CMS页面? Try different pages and see what happens! 尝试不同的页面,看看会发生什么!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM