https://redmine.gc.cuny.edu/https://redmine.gc.cuny.edu/favicon.ico2010-12-16T13:58:56ZCUNY Graduate Center - Project Tracking SystemCUNY Academic Commons - Feature #489: Drag and Drop Ordering on Gallery Post Pluginhttps://redmine.gc.cuny.edu/issues/489?journal_id=18282010-12-16T13:58:56ZRon Rennick
<ul></ul><p>Thanks :)</p>
<p>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.</p>
<p>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.</p>
<p>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.</p> CUNY Academic Commons - Feature #489: Drag and Drop Ordering on Gallery Post Pluginhttps://redmine.gc.cuny.edu/issues/489?journal_id=18402010-12-16T16:44:21ZBoone Gorgesboone@gorg.es
<ul></ul><p>Ron, I like the idea of something that tries to reorder gracefully instead of sinking a bunch of time into an ajax interface.</p> CUNY Academic Commons - Feature #489: Drag and Drop Ordering on Gallery Post Pluginhttps://redmine.gc.cuny.edu/issues/489?journal_id=18452010-12-16T18:33:55ZMatt Goldmattgold@gmail.com
<ul></ul><p>That makes sense to me, too. Thanks, Ron. In the meantime, I'll employ your 10, 20, 30 etc. suggestion, which is very smart!</p> CUNY Academic Commons - Feature #489: Drag and Drop Ordering on Gallery Post Pluginhttps://redmine.gc.cuny.edu/issues/489?journal_id=18692010-12-17T20:02:55ZRon Rennick
<ul></ul><p>I pushed this into master but inadvertently put <a class="issue tracker-2 status-8 priority-4 priority-default closed" title="Feature: Create ability to respond to forum posts by email (Duplicate)" href="https://redmine.gc.cuny.edu/issues/498">#498</a> instead <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Drag and Drop Ordering on Gallery Post Plugin (Resolved)" href="https://redmine.gc.cuny.edu/issues/489">#489</a> on the message.</p> CUNY Academic Commons - Feature #489: Drag and Drop Ordering on Gallery Post Pluginhttps://redmine.gc.cuny.edu/issues/489?journal_id=18812010-12-18T23:02:11ZBoone Gorgesboone@gorg.es
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Resolved</i></li></ul><p>Works like a charm, Ron. Fixed in <a class="external" href="https://github.com/castiron/cac/commit/ae6dbdccbd1de4577c368f17f5c88acdc79125d0">https://github.com/castiron/cac/commit/ae6dbdccbd1de4577c368f17f5c88acdc79125d0</a></p>
<p>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.</p> CUNY Academic Commons - Feature #489: Drag and Drop Ordering on Gallery Post Pluginhttps://redmine.gc.cuny.edu/issues/489?journal_id=18952010-12-19T01:13:59ZMatt Goldmattgold@gmail.com
<ul></ul><p>Great. Thanks for your work on this, guys. Just created another ticket.</p>