Closed (won't fix)
Project:
Image
Version:
5.x-1.6
Component:
image_gallery
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Dec 2007 at 19:34 UTC
Updated:
17 Jan 2009 at 23:33 UTC
Has anyone been successful in sorting images by their filename in the gallery? This is helpful for those of us who leave our filenames the way they come out of the camera (or rename them as a datestamp), and would like to maintain chronological order:
_MG_5009.JPG
_MG_5010.JPG
etc.
Comments
Comment #1
kenjiru commentedI would also love to have some control over the sorting order of the images in galleries.
Comment #2
joachim commentedFor that, we'd need an extra sort criterion in Views.
Shouldn't be too hard, as "file name" already exists as a Views field.
Comment #3
tj2653 commentedI can't seem to find a "file name" field in Views. Am I blind or do I need to install something to see it? :)
Comment #4
drewish commentedjoachim's comments really were relevant to the 2.x branch. though i'm not sure the image filename is a field there...
Comment #5
joachim commentedIn the 2.x branch, there's Image: File name, file path, file size and a few other things. Just as fields though, not sort criteria.
Comment #6
drewish commentedah, right you are, i'd forgotten that i'd moved that over.
Comment #7
tj2653 commentedHi,
I tried using the "Image: File name" field, but it's only displaying the text "thumbnail" or "_original" for all images. Any ideas? Other fields such as "Image: File path" work properly.
Thanks
Comment #8
marcoBauli commentedtj2653: joachim talked about the "Image:File Name" in the Fields options, but what we want here is a different sorting order, not displaying a field.
You need to pick "Node: Title" in the Filters options instead (of course previously override the default Image gallery view by enabling and editing it, i suppose you already did this).
Please mark this as fixed if it does the job (chances are good ;)
Comment #9
tj2653 commentedHi Marco,
I know title defaults to the filenames, but I use actual readable titles in my setup, so that wouldn't work, would it?
Thanks
Comment #10
joachim commentedThis added to $tables['image_files'] works, but you'll need to wait for the fix to http://drupal.org/node/219939 for it work properly:
Comment #11
sunPlease provide a proper patch.
Comment #12
sun5.x-1.x won't receive any new features. Please upgrade.