Paginate Upload field on Detail Page?

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

By avrom33 - January 15, 2013

Hi guys,

Is it possible to paginate Uploads from a Detail Page?  In other words if I have 50 pics and I want to have prev and next buttons with 9 images per page, is that possible. Or should I be using a List Page instead?

The gallery is here:

http://www.gillianmcmillan.com/portfolio1.php

But I want it to look like this, with Prev and Next at 9 images per page:

http://www.gillianmcmillan.com/portfolio.php 

(This coding is broken, hence I'm replacing the gallery with CMS Builder)

Thanx and Cheers!

Avrom

By avrom33 - January 16, 2013 - edited: January 16, 2013

Thanx Greg, I figured it needed to be a multi-record of some type to work. This is a little over my head, but I'll follow through and see if I can make it work. :)

Actually, the "list page" already has pagination built in. I can just use that:

  // load records from 'pictures'
  list($picturesRecords, $picturesMetaData) = getRecords(array(
    'tableName'   => 'pictures',
    'perPage'     => '9',
    'loadUploads' => true,
    'allowSearch' => false,
  ));

But your right, you need to use a multiple list record instead of one uplaod field to make it work. Thanx! :)

Cheers