News:

CPG Release 1.6.31
Minor maintenance release
Clean up remaining remnants of the .net CPG website
Improved installer_stub compatibility with various server configurations

Main Menu

order album by last added and album pos column always 0 (zero)

Started by xam, February 20, 2005, 11:57:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xam

Hi,

I was trying to use the tip posted at http://coppermine-gallery.com/forum/index.php?topic=1379&postdays=0&postorder=asc&highlight=order+date&start=0
about adding DESC to get the album list displayed by "created last".

But this does not work since all albums created via the xppublish mechanism seem to to always set pos to 0 (zero).
Albums created by hand seem to work ok.

Thus I "hacked" my way around it and put in order by a.aid DESC instead (which now relies on aid to always be higher on newer albums).

But anyhow this only give me "half" of what i want.
I would like the album list to be sorted by "last added picture date" - so most recent additions comes first.

Any tips on doing that ?

Best regards,
Max