Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.3
Component:
node data
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2009 at 14:12 UTC
Updated:
16 Dec 2009 at 12:20 UTC
I am seeing many instances of the items i list in a view. I have read that the culprit is taxonomy. If multiples are allowed under one taxonomy and Tags, then the view will generate clones of my nodes (only in the view).
But after I made sure to clean up taxonomy to not allow more than one occurrence, it still is an issue.
If I use the 'Distinct' option, nothing comes through... Hmmm weird.
How can I get rid of the dublicate nodes (in the view)?
Thanks
Morten E
Comments
Comment #1
excaliburst commentedDid anyone ever solve this issue. It is driving me mad. And my customers have no faith in Drupal because of this...
Anyone.
Morten
Comment #2
dawehnerSomethiing really easy is to use single cck fields.
Then you don't have a one to many relationship and you can sleep again.
Comment #3
excaliburst commentedHi Dereine,
Please elaborate. How do I do this?
To my knowledge in Views2 I don't use relationships. I only extract CCK fields from the same table. At least I have never tried to use relationships yet.
I need to get rid of the duplicates before I can move on to more sophisticated use of Views2.
Thanks a million.
Morten E
Comment #4
MantasK commentedI don't know if it is the same problem, but it seems, that it may be.
In my view i select node and all atached images. Views module generate this sql:
So foreach node it selects as much rows as there are images.
It could be easily overcome by using "group by". If I add "GROUP BY node_vid" to this sql statemet, it selects what I want. But in view module one can not group by vid, you can only add nid to fields and then group by it, but it doesn't help, you need vid.
Is there a way to solve this?
Comment #5
excaliburst commentedNow presumably fixed in the dev version of CCK, allowing to use MultiGroups filters in Views. This way you may indicate within each Content Type, which multigroup you want to be the single identifier.
Hence all the duplicates vanish.
I have this fixed on 2 sites now.
Thanks anyhow guys.
BR
Morten E.