RE: Paginate with drag / drop
Right on. Pretty good ideas. Thanks. From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of jodator Sent: Tuesday, March 12, 2013 8:45 AM To: cake-php@googlegroups.com Subject: Re: Paginate with drag / drop You can: a) create virtual 'basket' to drop items while paginating (items in basket are stored between paging), b) add menu on right-click, button, move to position: user enters position After moving item to new position (either from basket (a) or by command) you should refresh current page so user can see new paginated results. If you insist on drag&drop you could add 'display all on one page' link/page to let user freely reorder list without pagination (well if the list is reasonably long) On Monday, March 11, 2013 11:54:42 PM UTC+1, advantage+ wrote: I have a site where the paginated results need to have the ability to sort / re-order as the admin likes. Problem is how do you get something from page 2 back to page 1 since you can't drag / drop it in a list that you cannot see. I was hoping there was a way to offset the pagination so for example (offset by 1) so last record and first record get repeated so the option of moving to another page is an option. page 1 shows 1 - 11 page 2 shows 11 - 21 page 3 shows 21 - 31 So in theory you could take record 21 drag to 11 spot go to page 1 and still see it so you overlap the records by 1 or whatever number. Or any other ideas? Thanks, Dave -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Paginate with drag / drop
You can: a) create virtual 'basket' to drop items while paginating (items in basket are stored between paging), b) add menu on right-click, button, move to position: user enters position After moving item to new position (either from basket (a) or by command) you should refresh current page so user can see new paginated results. If you insist on drag&drop you could add 'display all on one page' link/page to let user freely reorder list without pagination (well if the list is reasonably long) On Monday, March 11, 2013 11:54:42 PM UTC+1, advantage+ wrote: > > I have a site where the paginated results need to have the ability to sort > / re-order as the admin likes. Problem is how do you get something from > page 2 back to page 1 since you can't drag / drop it in a list that you > cannot see. > > > > I was hoping there was a way to offset the pagination so for example > (offset by 1) so last record and first record get repeated so the option of > moving to another page is an option. > > page 1 shows 1 - 11 > > page 2 shows 11 - 21 > > page 3 shows 21 - 31 > > > > So in theory you could take record 21 drag to 11 spot go to page 1 and > still see it so you overlap the records by 1 or whatever number. > > > > Or any other ideas? > > > > Thanks, > > > > Dave > > > > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Paginate with drag / drop
On Mon, Mar 11, 2013 at 6:54 PM, Advantage+ wrote: > I have a site where the paginated results need to have the ability to sort / > re-order as the admin likes. Problem is how do you get something from page 2 > back to page 1 since you can't drag / drop it in a list that you cannot see. > > > > I was hoping there was a way to offset the pagination so for example (offset > by 1) so last record and first record get repeated so the option of moving > to another page is an option. > > page 1 shows 1 - 11 > > page 2 shows 11 - 21 > > page 3 shows 21 - 31 > > > > So in theory you could take record 21 drag to 11 spot go to page 1 and still > see it so you overlap the records by 1 or whatever number. > > > > Or any other ideas? Yes, tell the client that drag-reordering isn't going to happen unless everything's on one page. That said, I can't see anything _technically_ wrong with your idea. It'd be unwieldy for large changes in order. I've done crazier things. You'd need to modify the pagination params in $this->request. Might as well do that in beforeFilter. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.