List page numbers & perpage control

2 posts by 2 authors in: Forums > CMS Builder
Last Post: June 23, 2008   (RSS)

Re: [rjbathgate] List page numbers & perpage control

By Dave - June 23, 2008

Hi Rob,

See this post for details on create a page number list:
http://www.interactivetools.com/iforum/P62705#62705

For the perpage you can pass that as a form value and set it like this:

$perPage = 10;
if (@$FORM['order']) { $perPage = (int) $FORM['order']; }

...
'perPage' => $perPage,
...

For question 3, you can add extra arguments on the end of your links, for example:

<?php echo $listDetails['nextPageLink'] ?>&order=<?php echo @$FORM['order']; ?>">

Hope that helps! Let me know if you need more details on any of that. :)
Dave Edis - Senior Developer
interactivetools.com