Showing results for 
Search instead for 
Did you mean: 

Pagination In magento

Pagination In magento



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')
->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