[new module]: default sort

floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2011-08-21 18:57
 
jingai

Joined: 2011-07-23
Posts: 20
Posted: Sun, 2011-08-21 19:33

This module allows you to set a default sort order for newly-created albums. I specifically wrote this because I wanted all user-created albums to be sorted by Date Captured instead of Date Uploaded since users don't always upload photos in order. However, it does allow you to set it to whatever sort column and order you wish.

-j

 
daverupe

Joined: 2005-12-22
Posts: 1
Posted: Tue, 2011-11-22 21:02

Is there any way to sort by Date Captured > Ascending > FOLDERS FIRST?

 
jingai

Joined: 2011-07-23
Posts: 20
Posted: Fri, 2011-11-25 23:08

Not as an option in G3. But, I did it with the attached patch.

-j

 
timned88

Joined: 2011-08-31
Posts: 90
Posted: Tue, 2012-01-10 16:55

where do you copy/paste that patch so that albums get sorted as well? what filename and where? thanks.

 
jingai

Joined: 2011-07-23
Posts: 20
Posted: Tue, 2012-01-10 19:01

It's a diff -- you apply it with the program "patch". For example, while in the root directory of your Gallery3 installation, do:

% patch -p0 < <name_of_patch_file>

-j

 
timned88

Joined: 2011-08-31
Posts: 90
Posted: Wed, 2012-01-11 16:34

where do you do that? from the browser? do you need a comman prompt? i am not familiar with the syntax. thanks.

 
jingai

Joined: 2011-07-23
Posts: 20
Posted: Wed, 2012-01-11 16:37

Yes, you need a command prompt. If you're not familiar with using a shell, you might want to have someone do it for you.

-j

 
lokto7
lokto7's picture

Joined: 2009-02-03
Posts: 8
Posted: Mon, 2012-02-13 15:15

it is a great module. hopefully you could improve as below:

Sometimes we upload files which does not contain Captured Date such as screenshot files.
Such situation we could use the file last modified time stamp as the Captured Date.

Thanks for your great work.

 
lokto7
lokto7's picture

Joined: 2009-02-03
Posts: 8
Posted: Mon, 2012-02-13 15:16

oops... wrong thread.