cancel
Showing results for 
Search instead for 
Did you mean: 

Pagination In magento

Pagination In magento

Hi 

 

I am listing the products based on the author name and its done by using a page in the root folder where I am using this code to load products

$productCollection = Mage::getResourceModel('catalog/product_collection')
->addAttributeToSelect('author')
->addAttributeToFilter('author', array('like' => $searchstring.'%'));

 

and replacing the products in the home page with the result obtained from the above code using Jquery. I would like to know how to add pagination for the ajax page in the root folder