2

Is there a way to show views exposed filter with in betweeen operator for integer type as a select list(0-10, 10-20, etc)?

2
  • To be enoughst this question is far from being theming, because the actual behaviour would have to be changed. In general currently you would have to write a custom field handler, to achieve what you need. There are some tutorials out there. In theory one day drupal.org/node/731662 would allow you to configure this directly in views, but the patch is not ready yet and also not commited yet. Additional if you create a post here, please always add the drupal/views version, because it's often quite helpful. Commented Aug 2, 2011 at 9:57
  • A version still hasn't been indicated, but if someone stumbles upon this and is looking to do this in Drupal 6, there is a tutorial to walk you through it at metaltoad.com/blog/how-make-range-selector-filter-views
    – user842
    Commented Nov 19, 2011 at 4:44

1 Answer 1

1
  1. You can alter your exposed form and print needle select list.
  2. Than you hide your exposed filter with betweeen operator. E.g. display:none.
  3. Than you write js that fills your hidden filter when user change select value.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.