By pdelorme on
Hi,
I want to combine 2 exposed taxonomy filter into one so that when one search for a term it looks in two taxonomies.
I tried using the "Global: Combine fields filter" filter criteria of my view pointing to my taxononies, but even though it doesnt return errors, it seems it is searching on the taxonomy term ID and not its value, wich makes it pretty useless...
Is there some option or workarround to get this working ?
I'm using Views 7.x-3.5 with Drupal 7
thanks,
P.
Comments
did you get a solution?
I'm in the same situation. Did you get a solution and if so, can you please share?
Thanks
User relationships
Try adding a relationship to the term reference field.
Then add a "Taxonomy term: Name " field using the relationship you just created. Set it to hidden if you like.
Then include this new field in your "Combine fields filter".
<8)[=<
that's a great suggestion
@Jaesin, thnks so much, I was breaking my head more than one month ;)
Works for me.
Thanks @Jaesln You made my
Thanks @Jaesln
You made my day!
Jaesln++
Blessings
1st Drupal 8 backend specialist acquia certified in Perú!

CTO / Software Architect / Senior Developer
Thanks. but what if I have 5
Thanks. but what if I have 5 term fields. It causes duplicates in my view. Even with DISTINCT
Solution for my question
https://drupal.org/node/1704962
You save my day!
@Jaesin You save my day! Thanks!
www.raincreativelab.com
Oh yeass!!! great solution
Oh yeass!!! great solution man :)
Worked like a charm! Thank
Worked like a charm! Thank you sir!!
Great Solution
@Jaesin, thnks so much.
"Combine fields filter" and Taxonomy- WORKED
Thanks Jaesin..
Worked in my case.
Thanks Jaesin...! You save my
Thanks Jaesin...! You save my time!
Hello
Hello
Thank you for your answer
Do you know how to to this when there is several taxonomy term linked to ?
In fact i have Tag1 and Tag2 linked to my content and combine filters doesn't work in this case, because instead of retrieving all related tags , the request down by taxonomy term.
This is my request :
However, "taxonomy_term_data_field_data_field_tagsprocedures.name" always returns the first tag of the list.
Term widget
Thanks, this wasn't my exact solution but it certainly helped me find it!
I was trying to combine a term filter across two different fields that were both a term reference to the same vocabulary.
I added a relationship "Taxonomy terms on node" and was able to add a Term widget filter that filtered both fields.
Help me!
Hello, I am new to Drupal and I have problems doing what you just said, I created a Term reference type field, but now I do not know how to create a Term reference:name field, I can not find that type of field in the selection Of types, can you help me explain the procedure in a more detailed way if possible please?
Thanks
Work fine in Drupal 8 also.
Thanks @Jaesln. Work fine in Drupal 8 also.
you're a lifesaver!
Posting screen cap for future users:
https://pbs.twimg.com/media/D3u-4_JWAAMrett.png:large
Worked perfectly
Thanks @Jaesin, this was exactly what I was looking. I was struggling to find the issue.
10 years later...
...and this still saved my butt! Many thanks!
I've added a comment on a
I've added a comment on a separate thread that managed to deal with the duplicate records after following the (great) advice here for getting the taxonomy term: name field in to my combined filter box. It involved using MYMODULE_views_query_alter to add a groupby parameter to the query.
http://drupal.stackexchange.com/questions/73620/group-by-in-hook-views-q...
propably an easier solution
in order to solve the multiply / duplicate problem it just made a checkmark on distinct on query settings and also putted "use aggregation" to yes.
cheers,
Matthias
http://www.trust-design.net
You are correct
Just for whom not used to manage views, youcan find above mentioned settings on your views setting page:
>(in the right)Advanced Settings
>OTHER
>Use aggregation
>Query settings
Thanks @Jaesln
Thanks @Jaesln it worked for me.