Apologies if this isn't a colorbox issue but I thought this would be the best place to start. The problem is as follows - I have some imagecache presets that generate images that are attached to a node. I have a view that uses a colorbox gallery to display the imagecache generated images for that node, and the view uses the node id as an argument.

However, when the user clicks on a gallery image and the popout overlay appears, there is always an extra image at the end. This image is either a repetition of the first image displayed or an image from a completely different node. I've tried the views "use distinct" option but this hasn't done anything.

Comments

frjo’s picture

Do you have an example site where we can have a look at the problem? Or if you could post the html source of a page with the problem.

Colorbox can only "see" images that are on the page and use the "rel" attribute to decide how they should be grouped in to Colorbox galleries.

jamiehollern’s picture

The website is www.dominoletting.co.uk. If you click onto one of the property pages and click on the images you should be able to see the problem.

hutch’s picture

I see no problem at dominoletting, colorbox is working fine.

frjo’s picture

You have two Colorboxed links to the first image. First the big image and then the "View all photos" link.

Just change the rel attribute value of the "View all photos" link and the problem should go away.

jamiehollern’s picture

frjo - removing the "View all photos" link works! Thanks so much. Just one more question before I close this if you wouldn't mind: I'd like to keep the "View all photos" link on there so what should I change the rel attribute value to? I assumed it needed to be the value I had before, or can it be anything?

frjo’s picture

Colorbox will group all images that have the same rel attribute value in one gallery.

Set the rel attribute value of the "View all photos" link to something different, remove it or set it to empty and the problem should go away.

The rel attribute is only used for the Colorbox gallery feature and nothing else.

jamiehollern’s picture

Status: Active » Fixed

Thanks!

Status: Fixed » Closed (fixed)

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