Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
kvvnn CreditAttribution: kvvnn commentedI would also like this functionality. A checkbox would also be nice
like :
Comment #2
protoplasm CreditAttribution: protoplasm commentedsubscribe
Comment #3
Pierre_G CreditAttribution: Pierre_G commentedAny 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
Comment #4
Pierre_G CreditAttribution: Pierre_G commentedComment #5
adam_c CreditAttribution: adam_c commentedThis 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
Comment #6
alex.k CreditAttribution: alex.k commentedThe 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.
Comment #7
mrf CreditAttribution: mrf commentedI 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.