Album "sort by" name
joemonster
![]()
Joined: 2006-04-12
Posts: 236 |
![]() |
I added in modules\gallery\helpers\albums.php a line to be able to sort albums by name ( = directory). Denis |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
joemonster
![]()
Joined: 2006-04-12
Posts: 236 |
![]() |
Nope, title is different from name. title is display within gallery, while name is the path used in var/albums (and also the column name in the DB). Actually, I change the albums.php file: Quote:
static function get_sort_order_options() { |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
You may want to look at these pages on using git if you want to maintain your changes with current code. http://codex.gallery2.org/Gallery:Using_Git It's unlikely that this additional option will be added to core. We discussed exactly this, this past weekend. Not sorting by filename (which is what that field is now called in the UI), but the sort options. We want to keep them to a minimum to keep the interface on the simple side. I think the majority of the people would sort by title (or manually) versus filename. ____________________________________________ |
|
joemonster
![]()
Joined: 2006-04-12
Posts: 236 |
![]() |
I am looking several times a week to follow the changes... I do agree with you with keeping it simple, though I would say this is not a single line that will make so much heavier...***. However, it won't be that tough to modify a few files after updating! *** (it kind of sounds rude while I read my post again, but it's not! It's translated from my french mind) |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
No, it doesn't sound rude to me in English. It's not that it would be heavier code, it's just one more option in the interface. We already have 7 sort options. While one more would only be one more. Where do we stop? If I recall correctly though sort options are something that one could extend with a module. |
|
llundgren
Joined: 2003-05-19
Posts: 67 |
![]() |
the sort options in 1.5 are what is needed. My file structure is setup so that sort by filename puts them in correct order, except I have some sorted bt taken date after that option was added. The Albums first option I have used but rarely since I coded the filename so they sort first. I have only 35k images. thelundgrens.us |
|
Kershek
Joined: 2003-06-02
Posts: 32 |
![]() |
I would like to reiterate that sort options from 1.5 are very beneficial. My folder file structure is also ordered for filename so that my titles can be free-flowing. Please do not take functionality away. |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
Sort by filename seems like a reasonable option. Tracked in https://sourceforge.net/apps/trac/gallery/ticket/1377 and fixed in the latest code. |
|