I want to display the galleries in a grid. I imported the code in views to display the galleries in tables, which I found in the handbook here http://drupal.org/node/544748. Then I changed the Table style to Grid. It seemed to work fine, but then I noticed a duplicate of the gallery shows up for each image in that gallery. How can I make each gallery display only once?

Comments

dbeall’s picture

Title: Gallery duplicates » Gallery duplicates due to views distinct not working

Many of us have used the code without any issue....
This is an issue with distinct setting in views not working.
I do not know the fix for the views problem.. I am watching this for any news.

This is a post at views:
Node Distinct is not working anymore:
http://drupal.org/node/140061

similar/same as this node_gallery issue:
How to create a view block displaying all albums/galleries w/ images:
http://drupal.org/node/639216#comment-2293772

dbeall’s picture

I have one possible shot in the dark... just a maybe from Rik..
Did you "select" or "choose" a cover image for each gallery, or are they just "default selections" from the gallery module..?

dbeall’s picture

@Toxid, what version of views are you using..?

Toxid’s picture

Thanks for replying.
I'm using views-6.x-2.7, and I have chosen a cover image for the gallery. I've read those threads but found nothing helpful.

dbeall’s picture

upgrade your views to to the newest version 6.x-3.0-alpha1
That should fix your issue..

It has fixed the other similar node_gallery views issue here:
http://drupal.org/node/639216#comment-2297638

cholden’s picture

Hi,

I had the same problem as you and solved it by updating to the newest version of views (6.x-3.0-alpha1). Seem like views-6.x-2.7 ignores the distinct function.

Toxid’s picture

Status: Active » Fixed

That fixed the problem! Thanks! I thought I should avoid the alpha version to be on the safe side, turns out it was the other way around.

dbeall’s picture

@Toxid, can you give us details about what you did so we can help others with this.
Which version of views are you using, or what fixed the problem..?

Rik’s picture

He updated his Views module to 6.x-3.0-alpha1.

dbeall’s picture

thanks Rik, wanted to be sure so I don't mislead people and have a solid answer when it comes up.. It really discourages people when the answer is 'maybe'.

dbeall’s picture

I found out that project/content_access breaks the distinct function in views 6.x-2.7. Uninstall the module and the distinct view works again in 6.x-2.7.

dbeall’s picture

Title: Gallery duplicates due to views distinct not working » Gallery cover duplicates; views 2.7 distinct breaks with project/content_access

update title

dbeall’s picture

Title: Gallery cover duplicates; views 2.7 distinct breaks with project/content_access » Gallery cover duplicates; views 2.7 distinct breaks with content_access or node_gallery access

further testing shows views 6.x-2.7 distinct not working with either project/content_access or node_gallery access installed. once removed, views works fine.

This was marked fixed because views 6.x-3.0-alpha1 seemed to fix the problem.

Toxid’s picture

Title: Gallery cover duplicates; views 2.7 distinct breaks with content_access or node_gallery access » Gallery cover duplicates; views 2.7 distinct breaks with project/content_access

That's right, I updated the Views module to 6.x-3.0-alpha1, and the problem was solved.

kmonty’s picture

Status: Fixed » Closed (won't fix)

It is not fixed because it won't work with views 2.7

That said, I won't fix it because of views 3.