柳暗花明笔记

    magento 搜索页面xml的分页action不可少,少了分页会出不来的

    所属分类:[ php&web ] 猫哲学家 发表于:2012-07-31 22:43 浏览:480

    magento 搜索页面xml的分页action不可少,少了分页会出不来的:

    <catalogsearch_result_index translate="label">
            <label>Quick Search Form</label>
            <reference name="root">
                <action method="setTemplate"><template>page/list.phtml</template></action>
            </reference>
            <reference name="content">
                <block type="catalogsearch/result" name="search.result" template="catalog/category/view.phtml">
                    <block type="catalog/product_list" name="search_result_list" template="catalogsearch/resultlist.phtml">
                        <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalogsearch/toolbar.phtml">
                            <block type="page/html_pager" name="product_list_toolbar_pager" template="catalogsearch/pager.phtml"/>
                        </block>
                        <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
                    </block>
                    <action method="setListOrders"/>
                    <action method="setListModes"/>
                    <action method="setListCollection"/>
                </block>
            </reference>
            <reference name="rightbar">
                        <block type="catalog/navigation" name="channel_catalog" template="catalog/navigation/channel.phtml"/>
                         <block type="cms/block" name="right_top_goods" as="right_top_goods">
                               <action method = "setBlockId"><block_id>right_top_goods</block_id></action>
                         </block>
                         <block type="cms/block" name="tag" as="tag">
                               <action method = "setBlockId"><block_id>tag</block_id></action>
                         </block>
                    </reference>
    </catalogsearch_result_index>

    标签: php  magento 
    上一编文章 红颜知己--转载 下一编文章 drupal cck 图片上传模块 filefield
    最近文章
    发表评论