Currently, If I try to filter an exposed view by user relationship type, I only get an autocomplete textbox. Is it possible to get a drop-down box instead so the user can filter based on relationship type without having to remember all the types to type in?

Comments

kvvnn’s picture

I would also like this functionality. A checkbox would also be nice
like :

[ ] Only show friends
protoplasm’s picture

subscribe

Pierre_G’s picture

Any news of this ?

A select would be really nice, and could be then changed by this module if users want more : http://drupal.org/project/better_exposed_filters

Pierre_G’s picture

Version: 6.x-1.0-rc1 » 6.x-1.0-rc4
adam_c’s picture

This is exactly what im after also, could we try and get the wheels moving please?

What would be involved in implementing this? I could take a look at the code if someone points me in the right direction, ive tried to work with the views code in the past without great success but this is a feature I would really like. Im also in the position where I cant use the autocomplete instead because my view is in a quicktab and the ajax doesnt mix well.

Im using views 2

alex.k’s picture

The implementation is in user_relationship_views/views_handler_filter_user_relationships_type.inc. should be pretty easy to change the form element. But, please, if you want your change to be incorporated into the module, be sure to keep existing behavior. Some views filters offer both autocomplete and select (taxonomy terms, IIRC) so you can model the code on one of existing examples.

mrf’s picture

Status: Active » Postponed

I am postponing any 6.x feature requests that don't have a current applicable patch to help sort the large list of open features.

Please feel free to set to 'needs review' once a patch is included.