1

I have a site in which members can upload pictures of themselves (imagine a personals site). Users can upload up to five pictures, and each time they upload a picture, a rule increases the value of a custom field, Number of pictures.

Members can search for other members using a view. This view has a number of exposed filters.

What I would like to do is add another option, Show members with pictures only. Ideally, this would be a checkbox. However, I have no idea how to add such a thing to a view. I could add the Number of pictures field as an exposed filter, but since this is an integer, users would have to type "1", which is ugly and unintuitive. How might I start to go about this?

2 Answers 2

1

if you are not able to achieve what you need with views default options. You can create your custom views handler. In this case, it would be a filter handler.

https://api.drupal.org/api/views/handlers!views_handler_filter.inc/group/views_filter_handlers/7

https://drupal.org/node/1239866

Extending views functionallity to provide an approach to your problem

-1

You are looking for Sexy Exposed module. I think you can do it with this module, It makes any views exposed filter's select list as checkbox list.

This module makes any views exposed filter's select list sexy using the jQuery Dropdown Check List plugin.

After installing this module, you will get a new checkbox on your view's exposed filter settings form called 'Make it sexy'. By ticking it your exposed filter will be pimped up by some hot javascript magic thanks to jQuery Dropdown Check List.

enter image description here

2
  • This looks like a useful module, but in this case, the field is not a text value list; it's an integer value. Commented Oct 4, 2013 at 2:43
  • Sexy Exposed is not sexy UX. Commented Apr 25, 2018 at 17:11

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.