Monday, March 11, 2013

Re: Paginate with drag / drop

On Mon, Mar 11, 2013 at 6:54 PM, Advantage+ <movepixels@gmail.com> 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+unsubscribe@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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate