Multiple Paginating Lists on One Page

Permalink
I'm working on a homepage which will have multiple pages list on it, I need each one to go to its next page individually. So far I've managed to patch this together with the help of a few developers on this site (Remo, Dutchwave, matogertel and poorleno thanks guys)
<?php 
defined('C5_EXECUTE') or die(_("Access Denied."));
$textHelper = Loader::helper("text"); 
$imgHelper = Loader::helper('image'); 
   // now that we're in the specialized content file for this block type, 
   // we'll include this block type's class, and pass the block to it, and get
   // the content
   $reservedParams = array('page=','query=','search_paths[]=','submit=','search_paths%5B%5D=','all' );
   $pages = $cArray;
   $pagination = Loader::helper('pagination'); 
   //pagination 
   $pageSize=4; 
   $page=intval($_REQUEST['page']);
   #print $page;
   global $c;


I duplicated this script four times in the custom folder of the page list block, in the hope that it would just change the column it was in, but all the columns changed to their second page.

 
dvdnl replied on at Permalink Best Answer Reply
I've managed to work this out. I've just defined the 'page' element as something different in each of the custom templates (see attached code)
<?php 
defined('C5_EXECUTE') or die(_("Access Denied."));
$textHelper = Loader::helper("text"); 
$imgHelper = Loader::helper('image'); 
   // now that we're in the specialized content file for this block type, 
   // we'll include this block type's class, and pass the block to it, and get
   // the content
   $reservedParams = array('page_fund=','query=','search_paths[]=','submit=','search_paths%5B%5D=','all' );
   $pages = $cArray;
   $pagination = Loader::helper('pagination'); 
   //pagination 
   $pageSize=4; 
   $page=intval($_REQUEST['page_fund']);
   #print $page;
   global $c;


Hope this can help others out there.