Re: list items per page and pagination

3 posts by 2 authors in: Forums > CMS Builder
Last Post: August 8, 2013   (RSS)

By 4cdg - August 8, 2013

In response to: [url "http://www.interactivetools.com/forum/forum-posts.php?postNum=2211818#post2211818"]Re: [ikanizaj] list items per page and pagination[/url], ...

I am having a similar issue with pagination.

I am using 2 separate list viewers to create a viewer with 2 different layouts.  First calls 3 records into 1 row, 3 columns like this

// load records from 'listings'
  list($listingsRecords, $listingsMetaData) = getRecords(array(
    'tableName'   => 'listings',
'orderBy'     => $orderBy,
'perPage'     => '3',
    'loadUploads' => true,
  ));

Next i want to call next 7, 1 record per row
then have pagination to go to next page and repeat the layout
3 records in 1 row --- 7 records, 1 per row.

Now the call above works, but the second call below calls the rest of the records down the page

// load records from 'listings'
  list($listings2Records, $listings2MetaData) = getRecords(array(
    'tableName'   => 'listings',
'orderBy'     => $orderBy,
'offset'     => 3,
    'loadUploads' => true,
  ));

how can i accomplish this, you can see what i have at at this link

http://www.searcharental.com/listings.php?address%2Ccity%2Czip_code%2Cstate_query=&rent_per_month_min=&rent_per_month_max=&category=&bedrooms_min=&bedrooms_max=&bathrooms_min=&bathrooms_max=&type%2Cschool%2Cdeposits_or_fees%2Clength_of_contract%2Cdescription%2Cfeatures_amenities_query=&x=81&y=15

after the 10th record, i want the pagination... 

By 4cdg - August 8, 2013

perfect

thanks so much