亲爱的专家,
我提到了到目前为止我在使用 Magento 1.4.2 版的一个项目中所做的一切,但如果我的任何过程看起来有问题,请纠正我。我会非常感谢你们所有人。
我的产品页面有一些非常不同的外观,以至于使用默认的可用页面布局句柄可能不明智。
所以我想使用另一个布局句柄“ page_product_list
”而不是可用的(如“ page_two_columns_left
”,“ page_two_columns_right
”)。config.xml
为了使用它,我在文件“ ”(位于文件夹“ ”)中定义了一个 XML 块/app/code/local/Mage/Page/etc/
,就像其他布局句柄块一样。我的自定义布局句柄的代码是:-
<!-- some other nodes -->
<three_columns module="page" translate="label">
<!-- details of this node -->
</three_columns>
<product_list module="page" translate="label">
<label>Product List Page</label>
<template>page/product-list.phtml</template>
<layout_handle>page_product_list</layout_handle>
</product_list>
所以现在我想要的是加载这个布局句柄而不是“ page_two_columns_left
”&“ default
”布局句柄,每当任何用户试图查看任何类别的详细信息页面时。
但它不起作用。有人可以指导我如何以Magento的方式正确实现这一目标吗?