it appears as though the default pager simply does a get passing the filters and page number requested. I'm working with Views Bulk Operations, and need to provide the ability to preserve the selection across pages (that feature of VBO was removed in the 7 branch of VBO). It seems to me that the obvious solution would be to submit the form and collect the checked items on the server.
Ideally I'd use a POST (to avoid bookmarking the selection). Is it possible to develop a pager that submits the form?
Thanks.
Colin
Comments
Comment #1
merlinofchaos commentedIt seems like this should be against VBO?
Comment #2
colin_young commentedMy understanding is that extending pagers is a Views features (yes, I'm trying to add a feature to VBO, but I need to find out if Views will allow me to take the approach I'm contemplating).
Quite simply, is it possible to get a pager to do a form submit? I'm going to take a crack at wiring up the pagers with JQuery to post the form and see what happens (obviously I'll need to handle sending the correct query string so that the selected page is displayed). I was wondering if there is some officially supported solution however.
Comment #3
bojanz commentedNot sure I like the idea of pagers doing POST. Can't say it wouldn't make the problem easier to solve though.
And no, preserving the selection wasn't removed from VBO for D7, it was actually never added in the first place. You're free to push it along: #1207348: Integrate multi-page selection.
Comment #4
colin_young commentedAs a general principle, I don't know that I agree that pagers doing a post is a bad idea. As far as doing things "the Drupal way" that's another story. With JQuery I've got it sort of working (in that I navigate to the correct page, after getting the VBO form). I'm preserving the query string so bookmarking of specific pages and filters is still possible.
It seems I've worked out what's possible from the Views side of things, so I'll take up any additional discussion over in #1207348: Integrate multi-page selection.
Thanks.