Hi,

I followed this tutorial: http://drupal.org/node/59159

From the attached screenshots, you can see that in the first one (displayed.png)
- it is in the "General News" category of the Taxonomy: Terms for News
- it "is one of" a story item, and that is selected.
- the filter "is none of" "General News" is selected, but the Module-Builder node is still displayed.
- the node "Module-Builder module released" is displayed

In the second screenshot (missing.png)
- the node should be the only one displayed, but is not.
- the filter "is none of" "General News" is selected and I have pressed submit.
- it "is one of" a story item, and that is selected.
- instead, nothing is displayed, except my 'empty text' message.

How does this make sense?

CommentFileSizeAuthor
missing.png24.67 KBrandom_
displayed.png33.31 KBrandom_

Comments

merlinofchaos’s picture

"Is none of" and taxonomy terms are a little wonky, and don't always work as expected, due to the complexity of the query. Views has several issues with taxonomy and this is one of them.

random_’s picture

Ahhh, okay I see. Thanks for your reply.

This seems like a pretty simple query though...
If this doesn't work, then is it not currently possible to use views to list all nodes within a category?

What I really want to do is have a defined table view for any category within the News taxonomy.
If I can get a view to work somehow, is there a way to have all new categories that people create, automatically use that view?

merlinofchaos’s picture

'pretty simple query' and 'taxonomy' never go together in the same sentence, unfortunately.

Especially when it's a negation. Views 2 has solved this problem, but Views 1 is too stuck in its ways.

merlinofchaos’s picture

You can actually fairly easily list all things that are in a category; the problem is you're trying to list all things that aren't in a category, which is easier in the human mind than it is in SQL.

The query to do this looks something like this:

SELECT node.nid FROM node n LEFT JOIN term_node td ON td.nid = n.nid AND td.tid = 35 WHERE td.tid IS NULL;

The problem is that Views makes you go through a lot of hoops to do joins like that, and the taxonomy code doesn't go through those hoops properly.

random_’s picture

Actually, I'm not trying to list all the things *not* in a category. The displayed.png screenshot is just there to show that the "Module-Builder module released" item is really in the "General News" category. I think my initial post described things slightly wrongly.

What I'm confused about is the fact that when "Is one of: Story Item" and "Is one of: General News" are both selected, the "Module-Builder module released" item is still not displayed, even though it matches both those conditions (see missing.png).

random_’s picture

I don't understand why it's not possible to list all the nodes in one category, using a filter. I thought that's what filters are for.

I have one item with the Taxonomy: Term "General News" (see displayed.png - ignore the filters, this is just showing all the items).

When I set the filters to show only items that have the Taxonomy Term "General News", *it is not displayed* (missing.png).

domesticat’s picture

Status: Active » Closed (fixed)

Performing a mass closing of all issues over 180 days old. Please reopen if needed.