nanostudio-org / nano_photos_provider2

PHP photos provider for nanogallery2
https://nanophotosprovider2.nanostudio.org/
47 stars 12 forks source link

Enable Sort By CTime, MTime, and Custom User; Enable Album Sort distinct from File Sort #18

Closed krkeegan closed 4 years ago

krkeegan commented 5 years ago

Added another config setting callbed sortOrderAlbum that will default to sortOrder if not specified. If specified it will perform a different sort on albums than what is performed on files (sortOrder).

Added 4 new sort types asc_ctime, desc_ctime, asc_mtime, desc_mtime. All self explanatory. Look up ctime and mtime to decide what is best for your situation.

krkeegan commented 5 years ago

Added a config setting SortPrefixSeparator. Anything before this separator will be trimmed from the title and stored as the sort prefix.

Adds sort option. Can sort by the above sort prefix using asc_prefix and desc_prefix.

A useful example is if you want to sort by date, but do not want the date to appear in the title. You could then name the file or folders:

2012-05-14==Title of Photos

Kris-B commented 4 years ago

Sorry for the late reply... Included in v1.2.0 https://github.com/nanostudio-org/nano_photos_provider2/releases/tag/v1.2.0

Many thanks!