Hello,
I have a problem with views, but don t really know how to explain, except giving an example so:
I have 2 different vocabularies: gender and state
term 1-female
term 2-male
term 3- NY
term 4-LA
What I want is to create a view with the females from NY.
So I use "Argument= taxonomy:Term ID"
"Taxonomy Term" as a validator with both vocabularies
Argument type: "Term ID"
I check " Allow multiple terms per argument."
According to what i understood, after creating this view I should be able to go to "taxonomy/term/2,3" and see ONLY the female from NY.
But the result shows me all the females AND all the members from NY.
It s not easy to explain, and I know it s not easy to follow, but is anyone has an idea about my problem?
Thank you very much
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | views_taxonomy.test | 3.02 KB | dawehner |
Comments
Comment #1
dawehnerHere is a initial test for it.
The test does sadly not work currently
Comment #2
benben80 commentedThank you very much for your quick reply Dereine.
I m a kind of newbie for that kind of things, do I have to save this document in the views folder? (maybe in views/handlers?)
thanks
Comment #3
dawehnerNo, just ignore my post.
This is as far as i understand it, a bug of views, so i have written a test. If this tests has a positiv result, the bug is fixed.
Comment #4
benben80 commentedOK Dereine, thank you for your help.
Anyway I found another solution, if anybody needs it:
I use 2 arguments: "Taxonomy:Term ID"
With title %1 for the gender and %2 for the location.
It works very well.
Comment #5
manuj_78 commentedThis is cross post from http://drupal.org/node/741722#comment-2719120
How is this test file to be used..can someone please provide directions
Comment #6
dawehnerDownload the simpletest module, and read the README.txt there. There is described how you install simpletest on drupal6.
After this, you can download the test, place it in views, and clear the caches. Then you can run this simpletest.
Comment #7
manuj_78 commentedFor some reason I dont see any tests for views listed under simpletest...i have pasted the test file into the views folder
Any advice?
Comment #8
dawehnerYou have to use views 3.x to be able to use this simpletest.
Comment #9
davidbessler commentedDoes anyone have a solution to this yet? How can I display nodes that match taxonomy term 1 AND 2?
/taxonomy/term/1,2 does not work. It displays both nodes that match 1 and nodes that match 2. /taxonomy/term/1+2 does the same thing.
Comment #10
ak commentedsubscribing
Comment #11
joeebel commentedsubscribing
Comment #12
summit commentedHi, subscribing and question.
I have a view doing exactly this. But the key is not to use termid's but termnames:
so you got: view-name/females/NY and then you got the results.
The key is: making the arguments with the option; termname/synonym converted to termid.
Or did you try this already?
Greetings,
Martijn
Comment #13
summit commentedRemoved comment, not relevant for issue.
greetings,
Martijn
Comment #14
Letharion commentedComment #15
merlinofchaos commentedBe absolutely sure you are using Taxonomy: Term ID and NOT Taxonomy: Term ID (with depth). The addition of the depth discounts the use of AND due to query complexity.
I just tested this. Aside from the validator type needing to be "Term ID" but instead "Term IDs, separated by + or ," I verify that it does work as expected as long as I am not using the (with depth) argument.