我正在使用magento 1.7。在我的主页中,我想用分页显示不同类别的产品。我尝试了以下代码,并且分页正在工作。如何在此处提供“查看全部”。
<reference name="left">
<block type="catalog/layer_view" before="-" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/>
</reference>
<reference name="root">
<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs">
</block>
</reference>
<reference name="content">
<block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" template="catalog/product/list.phtml">
<action method="setColumnCount"><column_count>6</column_count></action>
<action method="setProductsCount"><count>0</count></action>
<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
<block type="page/html_pager" name="product_list_toolbar_pager" template="catalog/product/list/pager.phtml"/>
<action method="setDefaultListPerPage"><limit>15</limit></action>
<action method="setDefaultGridPerPage"><limit>6</limit></action>
<action method="addPagerLimit"><mode>grid</mode><limit>6</limit></action>
</block>
<action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>6</count></action>
<action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
</block>
</reference>