searching on List (integer) field for values greater than selection (drupal 7)

Events happening in the community are now at Drupal community events on www.drupal.org.
brightstorm's picture

i'm working on a site for a real estate company which involves a search form.

i've got a view set up called search results and have set an exposed form (form in block) with a field to search Number of Bedrooms.

Its set up in content type as Search Number of Bedrooms field_search_number_of_bedrooms List (integer) Check boxes/radio buttons

with the following content

Content: 1|1 Bedroom 2|2 Bedrooms 3|3 Bedrooms 4|4 Bedrooms 5|5 Bedrooms 6|More than 5 Bedrooms

in my search filter i get the following Is one of Is all of Is none of Is empty (NULL) Is not empty (NOT NULL)

whereas i'm looking for the same filters that you'd get for an integer field.

is there a better way of allowing the editor to assign a number of bedrooms in the content type using a select list (so i can store the integer but display the label in both the admin and the exposed form)?

Comments

Hi, I have the same issue.How

user654's picture

Hi,
I have the same issue.How did you solve this?I am using the search_api_views module.thanks

Bristol and The West, UK

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week