Pagination issues

4 posts by 2 authors in: Forums > CMS Builder
Last Post: September 11, 2014   (RSS)

By claire - September 10, 2014

Hey there - you need to set the perPage variable in the getRecords query, for a start.

// load records from 'demo_stuff'
  list($demo_stuffRecords, $demo_stuffMetaData) = getRecords(array(
    'tableName'   => 'demo_stuff',
    'loadUploads' => true,
    'allowSearch' => true,
    'perPage'     => '2', 
  ));

Change the limit to perPage and then take a look at the pagination.

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By Jesus - September 10, 2014

Great advice! Now it works.

Still need to check about where the page number its being displayed (see attachment)

By claire - September 11, 2014

Looks like a CSS issue. Not sure I can help you with that, unfortunately. 

I have a few code snippets for pagination if you want to try that instead.

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/