sort album order by name sort album order by name
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

sort album order by name

Started by zom, December 10, 2006, 07:23:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zom

I know there was a topic about sorting albums but I can't find it anymore.

I would like the albums to be order by name. what mod to apply ?

thanks

Thanks to everyone

Gizmo

#1
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_album_list

[EDIT] The above is for sorting categories which is not what you meant (I think). At this time, the only way I know to sort albums is manually in the album config - http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#albmgr_order.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

zom

in older version of copermine ther was a little mod to insert in the index file, something like "sort order by name", (I did apply this mod stored on one of my hard drive but thisone has crashed and now I can't find this php line to modify).

Thanks for help.
Thanks to everyone


zom

 ;D OK thanks

I have found it in v1.4 for the ones interested to order your albums by alphabetical order (by name) you must replace in the index file:

'WHERE category=' . $cat . $album_filter . ' ORDER BY a.pos ' . $limit;

by


'WHERE category=' . $cat . $album_filter . ' ORDER BY TITLE ' . $limit;

;)
Thanks to everyone

hasemann

I have no knowledge about php, but isn't it possible to define a certain category to be sorted in a different way?
e.g.

if ( ... 'WHERE category='MY_CATEGORY_NUMBER' . $album_filter . ' ORDER BY a.pos ' . $limit; )
else
('WHERE category=' . $cat . $album_filter . ' ORDER BY TITLE ' . $limit;)


???