-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom sorting method for a single directory #177
Comments
Hi, I'm not sure if I fully understand your request.
For 1) I'm not sire if I would like to add this complexity to my app. You can convince me if an other photo does it in a elegant way. |
Case 2 was what I was talking about. Sorting by "ascending date" as default (inside each folder under root) and "descending name" in a single folder as override (root only). So, how can I permanently override a specific folder's sorting? thank you! |
yes, the sorting is stored in the browser's cache, so in a different browser is gets back to the default value. Unfortunately there is no permanent way of doing this currently. |
So, would there be any chance of implementing it? |
Alright. I had some time and added this functionality. :) Here you can see how it works: pigallery2/src/common/PG2ConfMap.ts Lines 10 to 14 in 73a8c42
Basically, you add an empty file like |
that was fantastic! |
Is this recursive to subfolders if they don't have their own |
No, it only works in a given folder. |
document issue #177 about overriding default sort order
First of all, thanks for the great package. It is really helpful and has given to me and my family many happy moments.
Feature description
I'm trying to figure out a way to apply custom sorting method on root directory. For me, the most obvious way to browse a picture gallery is having the latest folders on top in the root directory and the files/folder inside each folder sorted by ascending date.
Proposed solution
A specific directory should have a way to override the general settings for sorting methods. I think the best (simplest) way would be by having a hidden file (ex.
.order_descending_name
).More info on my solution
I have all my pictures in folders with prepending date, (ex.
2010.09.02 John's wedding
). Sorting the root directory by descending name is the absolutely best approach for the gallery root; recent events are on top.But, if I set that method to settings, photos inside each folder are in reverse order, having the latest on top, which is not helpful.
Thanks
The text was updated successfully, but these errors were encountered: