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

CommentFileSizeAuthor
#1 views_taxonomy.test3.02 KBdawehner

Comments

dawehner’s picture

StatusFileSize
new3.02 KB

Here is a initial test for it.

The test does sadly not work currently

benben80’s picture

Thank 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

dawehner’s picture

Category: support » bug

No, 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.

benben80’s picture

OK 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.

manuj_78’s picture

This is cross post from http://drupal.org/node/741722#comment-2719120

How is this test file to be used..can someone please provide directions

dawehner’s picture

Download 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.

manuj_78’s picture

For some reason I dont see any tests for views listed under simpletest...i have pasted the test file into the views folder

Any advice?

dawehner’s picture

You have to use views 3.x to be able to use this simpletest.

davidbessler’s picture

Does 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.

ak’s picture

subscribing

joeebel’s picture

subscribing

summit’s picture

Hi, 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

summit’s picture

Removed comment, not relevant for issue.

greetings,
Martijn

Letharion’s picture

Assigned: Unassigned » merlinofchaos
merlinofchaos’s picture

Status: Active » Closed (cannot reproduce)

Be 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.