orderBy Upload Filename?

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

By Perchpole - June 17, 2012

I’ve created a fairly rudimentary gallery for a site using a simple record system. Each record has a one picture, a caption and a longer description.

The records are loaded into a thumbnail gallery using the following getRecords call:

list($galleryTypeRecords, $galleryTypeMetaData) = getRecords(array(
'tableName' => 'record',
'orderBy' => "date DESC",
'perPage' => '12',
));


It works fine. However, I would like to change the order of the image display to one using the filename of the uploaded picture.

(As almost all of the images will be taken from a digital camera - which stamps them with an incremental, numeric filename – they will always appear in the right chronological order, even if some are uploaded at a later date.)

The question is, how do I do it?

:o/

Perch