如何在local.xml中每页更改Magento的默认网格? [英] How can I change Magento's default grid per page in my local.xml?
问题描述
这里是magento的新手,我已经弄清楚了如何使用local.xml进行几乎所有我需要的更改,但是网格视图让我很困惑.我将网格视图更改为5列,因此显示的默认9个项目看起来很草率.我想将其设置为5的倍数.浏览catalog.xml时,我认为应该这样做:
New to magento here, I have figured out how to use my local.xml to do just about all the changes I need but the grid view has me stumped. I have changed my grid view to 5 columns, so the default 9 items displayed looks sloppy. I want to set it to a multiple of 5. Looking through catalog.xml I figured this should do it:
<reference name="product_list_toolbar_pager">
<action method="setDefaultGridPerPage"><limit>15</limit></action>
</reference>
在category_catalog_default和category_catalog_layered句柄中,但没有骰子.我正在为Magento分散的文档而苦苦挣扎,但实际上是要欣赏整个布局.
within both category_catalog_default and category_catalog_layered handles, but no dice. I am struggling with Magento's scattered documentation, but actually coming to appreciate the whole layout thing.
如果能有所作为,我使用的是1.5.1.
I'm on 1.5.1, if that makes a difference.
推荐答案
花了我很长时间才弄清楚这一点.事实证明,寻呼机值是通过管理员设置的.系统>配置>目录>目录>前端>每页产品的网格默认值"
Took me a long time to figure this one out. As it turns out, the pager values are set through the admin. System > configuration > catalog > catalog > frontend > "Products per Page on Grid Default Value"
这篇关于如何在local.xml中每页更改Magento的默认网格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!