Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
6.x-3.0
Component:
exposed filters
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Dec 2008 at 10:17 UTC
Updated:
26 Jul 2017 at 11:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
minhdqa commentedya i have a same issue. I make an exposed filter of taxonomy term as searching but when i create new term, i must edit the view to add the new term manually. What can i do now? help pls
Comment #2
jjkd commentedI could use the same thing as well (a views filter that allows selecting nodes that have no taxonomy terms assigned), did anyone ever find any workaround or solution for this?
Comment #3
asb commentedSame issue, subscribing
Comment #4
merlinofchaos commentedAdd the Taxonomy: Term relationship; the relationship has a vocabulary selector I think. You can then filter Term: Tid (set to the relationship) for IS NULL. That will find nodes with no terms in the selected vocabulary.
Comment #5
asb commentedThanks, Merlin, I've been searching for something like this for hours. But - forgive my bleeding ignorance, I can not find a "Taxonomy: Term" relationship, at least not in Views 6.x-2.11.
I'm getting four options:
The last one ("Relate nodes to taxonomy terms") indeed has a vocabulary selector, and the relationship by default is labeled "term". So this might be the best choice.
If I'm now using this relationship "term" (no matter if set to "required" or not) on the filter "Term: Tid", I'm getting zero records. And yes, there are definitely untagged nodes.
Generated SQL query:
(I'm trying to list images without taxonomy terms)
Am I blind or is this simply not working? (Attaching exported view)
Greetings, -asb
Comment #6
Letharion commentedI can do this fine on a clean Drupal core. (No CCK or other fancy stuff).
Please try the same thing on something simpler to rule out interference from other modules, and re-activate the issue as necessary.
Comment #7
asb commentedSorry, I can not reproduce this. If I set the relationship to required, the view outputs no results; if I uncheck the "required", I'm getting bogus results (tagged nodes).
Comment #8
Letharion commentedSorry, you're right. I didn't read properly and was testing something slightly different. I can reproduce your problem.
I think it's caused by the fact that the joins (relationships) doesn't actually ever return NULL, so "IS NULL" never matches.
Comment #9
asb commented@letharion: Thank you for confirming this issue.
However, I just ran into a similar problem where I wasn't using a relation and not even taxonomy (filtering for nodes with non-empty CCK fields with extracted EXIF values). In this case, the IS NULL operator isn't working for me as well. So basically the IS NULL and NOT NULL operators arn't working for me at all with real-world data.
Since I seem to be the only one having these problems I'm probably doing something wrong ;-(
Comment #10
Letharion commentedI'm not sure if what this is, so I'm making a support request until I find the time to look more closely at it.
Comment #12
naero commentedWas this issue ever resolved? We're looking for an IS NULL and/or IS NOT NULL choice.
Comment #13
iamjon commentedHi I just checked and it worked,
The settings were
Relationships: Taxonomy: Node - Get all nodes tagged with a term.
Exposed Filters Taxonomy- Term
Comment #14
iamjon commentedSorry my bad. Rechecking.
Comment #15
gabriel86 commentedHere is my solution:
1, add a "Relationships", choose "Taxonomy: Terms on node", set "Vocabularies" to what vocabularies you want.
2, add a filter, choose "Taxonomy: Term, Taxonomy term name". choose the relationship of the 1st step, and unlock the operator, now you can have a cup of tea and enjoy the new filter.
Comment #16
kars-t commentedHi
I am closing this issue to clean up the issue queue. Feel free to reopen the issue if there is new information and the problem still resides. If not please make sure you close your issues that you don't need any more.
Maybe you can get support from the local user group. Please take a look at this list at groups.drupal.org.
Comment #17
asb commentedSorry, but this still does not work in Views 3.
Loading the Views page of the attached view takes 10+ minutes (!) without giving any result, and it causes an excessive CPU load of 12 on a Intel Xeon W3520 with 24 GB of RAM, blocking the database for 15+ minutes completely; MySQL had to be restarted to get the website back, so the way it currently works is malicous and harmful. This was ran on a site with a potential result set of 16,809 image nodes and ~30k taxonomy terms.
Besides that it'd be still nice to be able to locate untagged nodes, imho Views needs some kind of safeguards to prevent even simple Views to kill database servers.
So this issue has three different parts:
Comment #18
mustanggb commented