Reputation: 111
I've created a view block but when I run, duplicates are showing.
A snapshot of the view looks can be seen at:
You can see the duplicates in action at:
Any idea how I can prevent this from happening (the duplicate items both link to the same node/page)?
I've enabled aggregation, then looked into aggregation settings for my Content: Title FIELD.
However there doesn't seem to be a unique type option under aggregation type?
The options are: - Group results together - Count - Count DISTINCT - SUM - Average - Minimum - Maximum - Standard deviation
I have tried enabling Distinct and Pure Distinct. Neither seem to work.
Upvotes: 1
Views: 1364
Reputation: 111
Here's how I found a solution:
Upvotes: 3
Reputation: 27043
In your view's advanced section and make sure you have the following option set:
Use aggregation
is set to true.After enabling this option, you will find Aggregation settings
link added next to Fields and Filter Criteria.
Use Node nid
as the distinct value or group by nid
, whichever better fits your needs.
Upvotes: 2