To add pagination to a custom product or category collection in my magento store I've created a custom module. I then configure the toolbar, pager etc in my _prepareLayout()
function in NameSpace_Module_Block_Collection
. The URL of the page the module will be used on is then defined in etc/config.xml
like so:
<?xml version="1.0"?>
<config>
<modules>
<NameSpace_Module>
<version>0.1.0</version>
</NameSpace_Module>
</modules>
<frontend>
<routers>
<collection>
<use>standard</use>
<args>
<module>NameSpace_Module</module>
<frontName>page-url-goes-here</frontName>
</args>
</collection>
</routers>
My problem though is what if I want to do the above, but on an existing category page - Category X
On my category page: www.website.com/category-x/
I have the display mode set to static block only. The block content is:
{{block type="catalog/navigation" template="xxx/xxxx.phtml"}}
With this page calling a custom category collection
Is it possible to apply pagination to my custom collection but keep my category url page. Ideally I need to do so without using a redirect