Closed (duplicate)
Project:
Views Gallery
Version:
6.x-1.3
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Dec 2010 at 00:34 UTC
Updated:
7 Jun 2011 at 03:08 UTC
Hey everyone, I'm building a site using the Views Gallery module and am trying to figure out a good way to allow users to put their images into a certain order in their own galleries. In other words, how can I make it so that the user can order their images in the way they want?
I'm thinking the weight module or something like that. I was hoping for a nice drag and drop type interface but have not come up with anything just yet.
Any ideas?
Thanks,
Tim
Comments
Comment #1
jastylr commentedYou can try using the DraggableViews module (http://drupal.org/project/draggableviews). I've used it before to create an administrative Views Page display to allow drag re-ordering of images. It is a table-based view output (or at least was when I first used it) so you can have one views Page display that shows your images how they normally would be displayed (Unformatted, Table, List etc). You can then provide a link to logged-in users such as "Re-order Images" at the top of the view that will be linked to your DraggableViews administrative Page display. You can then change the order of the images and save it so that when you go back to the normal Page display, your images will be re-ordered.
Another way might be to use the Nodequeue module (http://drupal.org/project/nodequeue). This provides an interface like DraggableViews but is maintained in a separate administrative area of the site so to change the order, you would need to navigate to "/admin/content/nodequeue" to view the queue and change the order. You would need to manually add each image to the queue to be able to change their order. You can combat this issue by adding a Rule with the Rules module to automatically add any image node to a particular queue automatically when it's created and delete it from the queue if the images is deleted. I actually do this right now with my Views Gallery nodes. I have only implemented it on the Gallery nodes themselves and not the individual images within the Gallery but I'm sure you could do the same.
The only downside I see with Nodequeue for this is that I think it will only display the node titles in a list which you can change the order of and not the actual images. With Views and DraggableViews, you can display any content you want so you can actually display the images on the screen when re-ordering them.
Hope this helps.
Comment #2
skizzo commentedSee also Rearrange images in gallery
and new module Sortable Grid
Comment #3
karens commentedThe issue linked to in #2 is the same topic and more informative, marking this a duplicate.