Summary View with taxonomy argument

mikel1 - June 25, 2009 - 14:58

I have content that has multiple taxonomy vocabularies. One of them is an argument to a view. I have selected validate for one vocabulary under argument options, but summary page has entries for all terms under all vocabularies. Any clues or is this a bug?

Is this view only for

caschbre - June 25, 2009 - 15:11

Is this view only for displaying content of one vocabulary? I believe you can add a filter to only display content that uses that one vocabulary.

No, I want to display all

mikel1 - June 25, 2009 - 17:44

No, I want to display all content, but categorize it by one vocabulary. To give a concrete example, I have a "Classified Ad" content type, which has two taxonomy vocabularies; a "Type" vocabulary ("For Sale" or "Wanted") and a "Category" vocabulary ("Tools", "Furniture", "Games"). I want to make a summary view that looks like:

Categories

Furniture (5)
Games (11)
Tools (10)

but instead the view looks like:

Categories

For Sale (20)
Furniture (5)
Games (11)
Tools (10)
Wanted (6)

...and the "For Sale" and "Wanted" links of course don't work (since the underlying argument is restricted to vocabulary "Category".

Got a response to my

mikel1 - June 25, 2009 - 17:51

Got a response to my issue.

Although it makes sense, it was not obvious to me, so I'm posting it. If you want to restrict the taxonomy argument to a particular set of vocabularies, you do that by adding a taxonomy filter to the view in addition to setting the vocabulary validator on the argument.

 
 

Drupal is a registered trademark of Dries Buytaert.