Project

General

Profile

Actions

Feature #489

closed

Drag and Drop Ordering on Gallery Post Plugin

Added by Matt Gold almost 14 years ago. Updated almost 14 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Ron Rennick
Category name:
WordPress (misc)
Target version:
Start date:
2010-12-15
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Ron, I am loving the gallery post plugin! It makes updating the home page of the site a million times easier. Thanks so much for your work on it.

The one thing that is a pain to do is to order posts -- if, say, I have a new slide that I want to appear third out of ten posts, I have to assign it the number 3 and then go back and re-assign numbers to posts 4-10. It's a time consuming process.

Is there any possibility that one could drag and drop posts to order them on the Gallery post interface -- pace where all posts are listed? That would make ordering a snap.

Looking forward to hearing your thoughts on this.

Actions #1

Updated by Ron Rennick almost 14 years ago

Thanks :)

As a short term solution: the display order does not need to be in sequence, so you can use 10,20,30... rather than 1,2,3 which allows you room to rearrange without having to adjust them all.

WP 3.1 is probably going to be out sometime in January and one of the changes/new features coming is that the admin area has been ajaxified. I haven't had much time to look at 3.1 yet, so I would hold off on any ajax based admin coding until I've had some time to look at that.

One option that would be relatively easy to implement would be to add a bit of code to the post save that checked to see if the menu_order being saved was already on another post. If it was, then auto increment the menu order of the others.

Actions #2

Updated by Boone Gorges almost 14 years ago

Ron, I like the idea of something that tries to reorder gracefully instead of sinking a bunch of time into an ajax interface.

Actions #3

Updated by Matt Gold almost 14 years ago

That makes sense to me, too. Thanks, Ron. In the meantime, I'll employ your 10, 20, 30 etc. suggestion, which is very smart!

Actions #4

Updated by Ron Rennick almost 14 years ago

I pushed this into master but inadvertently put #498 instead #489 on the message.

Actions #5

Updated by Boone Gorges almost 14 years ago

  • Status changed from Assigned to Resolved

Works like a charm, Ron. Fixed in https://github.com/castiron/cac/commit/ae6dbdccbd1de4577c368f17f5c88acdc79125d0

Marking the ticket Resolved as I think that Ron's solution is dynamite. Matt, if you feel strongly that drag and drop is needed, feel free to reopen and put into Future Release.

Actions #6

Updated by Matt Gold almost 14 years ago

Great. Thanks for your work on this, guys. Just created another ticket.

Actions

Also available in: Atom PDF