4

I am creating real estate website and as exposed filter for search in views i have a price.

Core view options are sufficient but maybe not so user friendly (as i have to explain in details how to input price, like dont use dots or spaces) so i was thinking of using slider so user can pick price range (for example from 10.000 up to 100.000).

I am not good at coding so was looking for module that does this ?

8

There is also the Better Exposed Filters module.

If you use the latest dev version there is support for jQuery UI slider, which was recently committed from a patch at http://drupal.org/node/1627524

It allows the use of a jQuery UI slider for any numeric filter (except date filters, which are technically an extension of the numeric filter).

  • I did not yet try dev version. Can it also catch range or its slider where you can choose one value only ? – Azz Kawa Feb 3 '13 at 18:52
  • If you select BETWEEN or NOT BETWEEN for your filter operator it will be a range, otherwise it will be a single slider. – rooby Feb 3 '13 at 22:32
4

Select With Style

When the widget is used as a filter (e.g. in combination with Views Global Filter) the slider becomes a range slider with two sliding handles to set "from" and "to" range values.

enter image description here

Contextual Range Filter

Views Contextual Range Filter is a simple plugin for Views that adds the option to contextually filter, not just by a single value, but also by range.

Numeric (float, integer), alphabetical (string) and list ranges are all supported.

Node ids, user ids and even taxonomy term ids are all special cases of integers so will work also.

You may use the OR (+) and negate operators. You negate by ticking the "Exclude" box on the Views Contextual filter configuration panel, in the "More" section.

enter image description here

  • I installed all modules and its working fine on node field, but in views i am still stucked. As exposed filter in views i am using price field and only getting text area, although on node slider is enabled and working fine. In documentation it says that i dont have to do anything more (i dont see any new options anyway) but to enable slider on node field which i did. I really have no idea what am i missing. – Azz Kawa Feb 3 '13 at 18:49
  • I also tried this module with no success. I think it wasn't built from the ground up for views. – Sam152 Jun 7 '13 at 2:38
1

If you work with Search API, you can easily use module Search API Ranges.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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