Hey guys,

so my view is using a reference field relationship, to show the nodes which a user has referenced, using other nodes.

I expect users to reference the same node, multiple times. I'd only like this referenced node to show up once in the view.

Distinct did not accomplish this.

Any ideas?

Comments

bgnm2000’s picture

anything?

harry slaughter’s picture

Issue tags: +duplicate view results

watching

bgnm2000’s picture

Hey Harry,

I was able to accomplish this using a custom function in template.php. I don't believe it's possible in a view's alone.

faunapolis’s picture

Issue tags: +duplicate node in views, +duplicate listings on views, +repited results in view, +duplicate

There is a "Node: Distinct" option in the basic settings for your view that you can probably use. Why views shows duplicate nodes so often, I don't understand. I am having the same problem doing proximity searches using views and the location module and not even this option is working for me so far.

Setting the "Distinct: Yes" option in the basic settings doesn't fix this issue for some reason.

giggler’s picture

Is the "Node: Distinct" the same thing as "Distinct: Yes"? I can't find "Node: Distinct"

and why does this seem random? I've set other views that were fine and this new view for a new CC has the double result.

giggler’s picture

I redid views from scratch and the duplication went away.

faunapolis’s picture

Ok, my problem was because of me and not because of the view (obviously). There was a reason why my nodes were showing duplicated, and it is that they were being found twice because of a multiple field that had two values.

I solved this problem by "grouping" the results. That is done clicking on the little "Gear Icon" next to the "Style: Unformatted" field in the "Basic Settings". Then you tell it to group by the field that is not repeated.

Hope this helps somebody

dawehner’s picture

Status: Active » Fixed

thx for sharing your solution

so this can be marked as fixed

Status: Fixed » Closed (fixed)
Issue tags: -duplicate view results, -duplicate node in views, -duplicate listings on views, -repited results in view, -duplicate

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