Hi,

I have a basic requirement of displaying nodes tagged with terms x and y only. But what after configuring my filter I see is also all the nodes that have been only tagged with term x or term y in the filtered list.

Say for example:

Scenario 1: I have three nodes tagged by term x and y.
Scenario 2: I have 2 nodes tagged by term x only.
Scenario 3: I have 2 nodes tagged by term y only.

So after applying my filter the url say "www.example.com/taxonomy/term/x,y"

The list shows the three nodes as defined in Scenario 1, but the list also has all the nodes specified in Scenario 2 and 3.

So instead of showing me only the 3 nodes, I have a list showing all the 7 nodes.

Hope I have been able to state my problem. Please help.

Regards,

Manoj

Comments

styro’s picture

Are you using Views (or something else) for your taxonomy term listings?

Taxonomy Filter has nothing to do with creating the actual listing - all it does is create the URLs. Something else interprets the URL into the list of nodes.

If /taxonomy/term/x,y lists nodes with either x OR y instead of nodes with both x AND y, then (unless something is very weird) you aren't using the core taxonomy module for your listings. The core module uses /taxonomy/term/x+y for x OR y.

see: http://drupal.org/handbook/modules/taxonomy

Note: The Views taxonomy listing can't do AND listings. It mentions this in the settings for the term id argument. So if you are using Views, switching back to the core taxonomy listing should fix this.

manoz_79’s picture

Thanks for the insight, yes I am using a view for my taxonomy listings.

I have solved the problem all I did was in my page view configuration I added an extra '%' so now my path for the listing looks like this "Path: taxonomy/term/%,% " and it worked.

Thanks for the help.

solotandem’s picture

Status: Active » Fixed

Good find. Adding the extra '%' does work with Views.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.