Thank you for your great module. The best one for me.

I have many photos in one album and there is a problem with sorting, because there are added chronologically but displayed in descending order. It would be great to have possibility to choose sorting order for each album. I know there is a weight -10 to +10 on Organize images, but if you have 100 images or more it's impossible to use it because of only 21 weight values. One solution would be to extend the weight to 3 numeric positions or better enter it manually. Other possibility may be to sort them alphabetically by filename.

I also noticed that it is not possible to edit or delete images on page other then no.1 if you have more images in album. This is critical for me.

Comments

eastcn’s picture

Well, the next version of the weight value will be changed to 100 -100.

Delete a picture waiting for the bug fix. This is a test version of the instability of the proposed use of a stable version 1.x.

berdir’s picture

What about adding a choosable default sorting algorithm which comes after the weight.

Example:

Select field #1 - sorting field:

- Name
- Date
- Rating
- ...

Select field #2
- ASC
- DESC

This can be configured either per album or as a default.

This should make it possible to easily sort images... manually setting a weight for hundred's of images isn't that funny :)

kecinzer’s picture

Yes, I would like this too.

berdir’s picture

Assigned: Unassigned » berdir
pimentoski’s picture

i would like this to.

the sort by filename its probably an easy and good way to sort the pictures.

berdir’s picture

Status: Active » Needs work
StatusFileSize
new22.5 KB
new8.91 KB

WARNING: the attached patch is not production-ready, it is not fully tested and *may* produce sql errors. It is however very unlikely that it destroys data as it simply alters SELECT-Statements. Don't use it on a production site if you don't know what you are doing. Patch is against branch DRUPAL-6--2 (= 2.5-beta3), do not use it if you use a different version.

I've created a first working version of a patch to support more flexible sorting of images. I had to change/extend some parts of the module internals and doing some funky sql query replacements so I need some testers to see if it works in different environments (it works on my site... ) and get some feedback (see "What I'm interested in..")

Features
- Sorts first by weight
- Sort by description (which is by default the filename without extension), rating or file id (Which is the current default and the same as sorting by date) (only one at a time)
- Sort those fields by ASC or DESC
- Sorting can be configured by node type (most useful for albums, but also works if images are added to a other node type). Can be configured at admin/content/types (edit the node type you want to configure)
- Should not change current sorting defaults

Has effects on the following:
- Album View
- previous/next links
- Flash gallery
- (Album Image, although this still does not work on my site...)

What I'm interested in..
- Does it actually work on your site
- Does it work with pgsql?
- Are there more useful sorting columns or views which are not yet sorted ?
- Would a global/default sorting configuration be useful? (or should I use the configuration of the photos node type as default?)
- Would it be useful to be able to configure sorting for each node differently (even more complex...)

UPDATE: Added a small fix to solve a sql error on some pages like administrate photos

Hoping to get some feedback,
Berdir

sander_123’s picture

Your patch works on my site. (Drupal 6.5, MySQL)

I'd like to sort on filename as well. With .zip uploads sometimes newer images are added earlier than older images. If I sort on Node ID, the images in a gallery are still not in the right order. In my case the order should be: oldest pictures first.

Babalu’s picture

please for 6.x-1.4-beta2

chakrax’s picture

I'd like this feature also. Looking at the patch code, it seems like the sorting is based on file creation date. It makes more sense to me to sort by EXIF date. Is that possible? That would ensure that the pictures are in chronological order, even if filenames and dates are messed up.

My .02.

vako’s picture

How can we apply the patches that you have mentioned? I downloaded the zip file and copied to the modules folder, yet it's not visible.

vako’s picture

I added the update patch, can see some difference in the menus, however I cannot see how we can sort the albums or images. Please help!

chakrax’s picture

Please add this feature to the next release? Pretty please!

dbeall’s picture

I have been trying this on my test site..
This may be off base, because I am not a php person.. It would be neat to use drag sorting like Drupal blocks. maybe a sort function that shows small thumbnails with click and drag.
nice module.. we like having a photo gallery for Drupal

nathaniel’s picture

dbeall’s picture

Hi Nathaniel, Thanks for the sorting wish.. Looks like a great addition to the module and people will just love it.

I gave up on the album photos module in June. It has lots of neat stuff, but it's a little out of control for my use case since I have per user galleries. If I was the only user, it would be fine.
Been working with node_gallery, development is a little slow, but it's getting there.

nathaniel’s picture

Status: Needs work » Closed (fixed)

Closing old issues, please start a new issue if this is still a problem.

The Drupal 7 version will focus on custom weight order as default and includes a drag and drop interface to re arrange photos.