Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
taxonomy data
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2008 at 21:32 UTC
Updated:
16 Sep 2008 at 21:42 UTC
I have two exposed taxonomy term-id filters. It looks like this:
Vocab A: [drop-down list of terms-A] Vocab B: [drop-down list of terms-B] [Apply Button]
When the drop-down list of terms-A is set to [Any], and the drop-down list of terms-B is set to anything EXCEPT [Any], then the results page is blank.
Note: It works fine when it is the other way around, though.
Comments
Comment #1
merlinofchaos commentedCan you try this with the -dev version? I think this bug may have been fixed already but I'm not completely sure.
Comment #2
Doh commentedAfter playing around with it a little more, I found the problem.
I have a hidden filter set to only show Vocab A. When I switched it to Vocab B then the problem (listed above) happened vice-versa.
However, when I completely got rid of the Vocab filter, then the content results were duplicated when the exposed filters were set to [Any] [Any].
Content-1 Term-A (from Vocab-A)
Content-1 Term-B (from Vocab-B)
Content-2 Term-A (from Vocab-A)
Content-2 Term-B (from Vocab-B)
Content-3 Term-A (from Vocab-A)
Content-3 Term-B (from Vocab-B)
I tried the "distinct option" and it doesn't work in this case. So either way, the results are not ideal.
Out of curiosity, I added another term field and it displayed like this:
Content-1 Term-A Term-A
Content-1 Term-B Term-B
Content-2 Term-A Term-A
Content-2 Term-B Term-B
Content-3 Term-A Term-A
Content-3 Term-B Term-B
That got me to thinking, is it possible to get it to look like this?:
Content-1 Term-A Term-B
Content-2 Term-A Term-B
Content-3 Term-A Term-B
I think that if I can get it into this format, then it will solve the problems that I am having.
Comment #3
Doh commentedI just figured out the solution. I can't believe that I didn't notice it sooner.
Create the field "Taxonomy: All terms", then select "Limit terms by vocabulary" and pick one vocab that you want your terms to come from. Then simply repeat this for every other vocab column that you want to have.
With this technique, you will still get duplicate results, but luckily, "Distinct: Yes" works for it.
So in the end, it displays perfectly :)
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.