forum.coppermine-gallery.net
No Support => Feature requests => Topic started by: pols1337 on June 27, 2012, 11:34:43 pm
-
Hi Andre,
I have a brilliant, brilliant idea for you! In future versions of Coppermine, you can ask if the user wants his categories and albums alphabetically sorted (alphabetical-ascending, alphabetical-descending). I spend so much time manually sorting my albums, when all I want is for them to be alphabetically sorted :o
Currently in Coppermine, you ask in Config > Albums if Categories should be alphabetically sorted. (See attached) But you should also ask for albums, since those are another list that many users may want to be auto-sorted.
Additionally, perhaps you should move the option for alphabetical sorting from the Config menu to "Files" > "Categories" or "Files" > "Album" menus, since those would be the more 'logical' places to ask about ordering.
Just a thought.
Joel
Gallery link: http://adonismale.com/tg/index.php (http://adonismale.com/tg/index.php)
-
albums alphabetically sorted
It's already on my TODO list for cpg1.6.x and maybe also as a hidden config option for cpg1.5.x.
-
Added config option for cpg1.6.x and hidden feature for cpg1.5.x in SVN revision 8453.
Additionally, I plan to add some user defined sort order like it's done for thumbnails and each a config option to toggle that feature.
-
Nice. Good job :)
-
Oh dear god, I hope you're planning to release cpg1.6.x soon ... if only so I can use this option. So much time wasted on reordering albums manually. :o
-
1.6 is a long way off at the moment. Please look at the code changes Andre has made as they allow you to do just what you are after.
-
Added [..] hidden feature for cpg1.5.x in SVN revision 8453.
If you don't need this feature urgently, just wait for the release of cpg1.5.22 (which will be released soon).
-
Okay sounds good!
:)
-
Andre release 1.5.22 today - http://forum.coppermine-gallery.net/index.php/topic,75858.0.html
-
Yup. I'm already uploading to my server!
-
Okay. Whoa, let's take a step back. Apparently the option is hidden ... so how can I toggle it?
-
You have to edit the config value directly in your MySQL database with a tool like PHPMyAdmin.
-
Okay, so I think I got to the config value via PHPMyAdmin ... album_sort_order = pa. What should it be set to, or what are the other choices?
-
/bump :)
-
Possibilities:
'album_sort_order' => array(
'type' => 'select',
'default_value' => 'pa',
'help_link' => 'f=configuration.htm&as=admin_album_sort_order_start&ae=admin_album_sort_order_end',
'options' => array('ta' => $lang_admin_php['title_a'],
'td' => $lang_admin_php['title_d'],
'da' => $lang_admin_php['date_a'],
'dd' => $lang_admin_php['date_d'],
'pa' => $lang_admin_php['pos_a'],
'pd' => $lang_admin_php['pos_d'],
),
),
So you can sort by title, date and position each ascending and descending.