[wp-trac] [WordPress Trac] #22607: Existing galleries (aka "Uploaded to this post") cannot be manually ordered

WordPress Trac noreply at wordpress.org
Thu Nov 29 16:31:33 UTC 2012


#22607: Existing galleries (aka "Uploaded to this post") cannot be manually ordered
--------------------------+--------------------
 Reporter:  devinreams    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5
Component:  Gallery       |     Version:  trunk
 Severity:  major         |  Resolution:
 Keywords:                |
--------------------------+--------------------
Changes (by tar.gz):

 * cc: code@… (added)


Comment:

 @devinreams and @nacin : thanks a lot for bringing this issue to the
 table. I would be thrilled to see this problem solved in core.

 For what it's worth, I did some brainstorming about how to implement that
 feature and made some UI mockups here: http://ms-studio.net/notes/time-
 for-an-advanced-media-plugin/

 Rather than adding menu_order and drag-and-drop to the Media Library view,
 I placed an "Attached Files" view into the left sidebar... But this was
 before the "Uploaded to this post" filter was added to the Media Library,
 so I was thinking that for a plugin it would be safer to add a new view,
 rather than changing the core.

 A few more observations:

 - It will be a bit mysterious for the user to see that the order of the
 images changes when switching from "All media items" to "Uploaded to this
 post".

 - It might be unintuitive for the user that the Media Library allows drag-
 and-drop when the filter is "Uploaded to this post", but ''doesn't'' allow
 it when the filter is "All media items", "Images", "Audio" etc.

 I don't see any easy solution for this, and it's a minor thing for sure -
 the most important to me is to have a solution for the manual re-ordering.
 :)

 Another thing to consider: at what moment will the new order be saved? And
 how will the user ''know'' that the changes were saved? In 3.4, it was
 needed to press the "Save all changes" button. I think it's much better to
 save changes immediately after dragging an item, and to provide visual
 feedback (the flash of yellow that can be seen when changing/saving a
 custom field).

 Btw, what about having this flash-of-yellow visual feedback also on the
 Title, Caption, and Alt fields when they are being saved? As per my
 testing, changes are always saved immediately, which is a great feature –
 but you can't be sure before you check the post preview ;)

 One last thing: it would be lovely to see a "Invert Order" button here.
 When adding a large number of images, inverting the order by drag-and-drop
 is a tedious operation. In 3.4, we have the "Sort Order:Ascending |
 Descending" buttons. I find that feature useful when handling large
 galleries, but I think it could be simplified as one button, "Invert
 Order"... which would also be welcome in the "Create a new gallery" modal
 window.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22607#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list