Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2012 at 16:53 UTC
Updated:
3 Feb 2012 at 17:40 UTC
Hi,
We have a requirement to build a Drupal site which displays Views filters that will look like the attached file.
I'm pretty confident it can be done but before I go back to the client and say yes, I would appreciate some peer feedback. Can this be done? If so, I'd really appreciate to hear some clever, creative pointers as to how you'd go about it.
Have a great weekend.
| Comment | File | Size | Author |
|---|---|---|---|
| filter_panel.jpg | 328.83 KB | Patrick Nelson |
Comments
Comment #1
merlinofchaos commentedThis can be done but it would require significant use of hook_form_alter to reformat the exposed form the way you need it.
Also, the checkboxes to control sorting probably cannot be done without extensive work because Views' exposed sort only lets you choose a single field. Also bear in mind that FAPI and Views have a few issues with checkboxes, in that you can't tell if checkboxes are truly unchecked because they aren't actually sent and FAPI handles this a little strangely when it comes to using GET forms where we can't be sure the form was actually submitted or not. So you will run into issues there that you'll have to work around.
So ultimately...you can pull this off but expect to work pretty hard on it.
Comment #2
Patrick Nelson commentedThanks Earl, good to know. Really appreciate the input.
Regards
Patrick