I'm trying to sort my photos by post date.
Changing the view, image_gallery, sort criteria to "Node: Post date desc" or "Node: Post date asc" has no effect.
The default sort criteria have been deleted and the above is the only one there.

--Rich

Comments

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

Are you sure you're using Views to make your galleries and not the old built-in system?

Rich - PDX’s picture

Yes I'm definitely using views.
The Admin > Image Gallery page displays, "Image galleries are being made with the Views module" etc
In the views module I have "Node view: image_gallery (image_gallery)" and "Term view: image_gallery_terms (image_gallery) "

Thanks

joachim’s picture

If you've changed the path of your view, it's possible that what you're seeing is the old hardcoded galleries. Check that the output you are seeing really is a view.

Rich - PDX’s picture

OK I did change the path of the view. It was "image" and I changed it to "galleries". Can you give me a pointer for where to look to make changes if I really want the path to be "galleries"?

Thanks

joachim’s picture

Did you check what you are seeing is actually a view?

Rich - PDX’s picture

I did not check to see if it is actually a view. I'm not sure how to do that. Can you give me a pointer?

joachim’s picture

Look at the source and check the classes!!!

Rich - PDX’s picture

Sorry for being slow on the uptake . . .

There are views classes on the top page that lists the galleries, but the galleries themselves have no views classes.

joachim’s picture

Right. In which case, the links to galleries in the view are being made back to 'image/tid/XX' and then you're out of Views again. You need to hack those links.

Rich - PDX’s picture

OK Thanks for your time.

rolando.isidoro’s picture

Hey Joachim,

I'm having the same problem as Richard described. I too am working with Views, so I have the "To change the way galleries are displayed, edit the image_gallery view on the Views administration page." message in the admin/settings/image/image_gallery settings page.

Changing any parameters in the image_gallery view doesn't produce any results in the way the photos are being shown in the website. You can take a look at the following examples to better see the issue:

I've changed the path of the view from image to galerias, but if you access it via the default URL it shows the same.

Let me know if you need any additional info to debug this and hopefully solve it. You can probably find me around the #drupal channel in IRC during weeks days if you want do discuss any details.

Thanks in advance,
Rolando

joachim’s picture

Your problem is going to be somewhere in the menu system that is causing the oldskool page callbacks to react in preference to Views. It's something you'll need to go in and debug I'm afraid.

rolando.isidoro’s picture

I followed another path, since debugging through a few thousands of lines in the source code seemed to be an Herculean task after just a few minutes into it.

Looking into the module's source code I learnt how to enable the standard non-views form in /admin/settings/image/image_gallery, so all I did was:

  1. Deactivate both image_gallery and image_gallery_terms views;
  2. Edit the image gallery settings at the /admin/settings/image/image_gallery form;
  3. Change the Image Display Sort Order criteria to Image title;
  4. Add an URL alias so that I could keep the path to reach the gallery list, in my case galerias -> image.

Btw, I noticed that choosing the File name Image Display Sort Order criteria results in no images showing up in the gallery thumbnails page.

This is just a workaround solution, even though it doesn't solve the Image Gallery Views sorting problem I hope it can help anyone else experiencing this issue.

Rolando