3
我想为magento主页使用自定义模板文件。 我用下面的代码在我的主题的布局/ local.xml文件,如本 tutorial使用magento主页和产品页面的自定义模板文件
<new_layout translate="label">
<label>New Layout</label>
<reference name="root">
<action method="setTemplate"><template>page/home.phtml</template></action>
<!-- Mark root page block that template is applied -->
<action method="setIsHandle"><applied>1</applied></action>
</reference>
</new_layout>
说明,但是模板路径提示显示页/ 3columns.phtml。 任何人都请指定确切的方式来设置一个模板的主页和另一个产品page.Also要删除购物车和比较框只能从主页的边栏,并显示在其他网页。我使用的是magento 1.4 .1
感谢您的答复,你有一个很好的教程Magento的modification.All在magentocommerce网站上的文档是令人困惑的。 另外我遇到了另一个问题。当我更改类别名称或静态页面url时,URL重写管理中的记录数量相乘。我只有20个产品和10个静态页面,并且URL重写管理记录大于500.我认为这会降低网站的速度。有没有解决这个问题?或者我必须清除数据库表? – 2010-07-01 06:55:08