I created a unfomated list (list of articles) in a Views to call each article in a colorbox. colorbox-load as rewrite link-class (for example for the titles) in Views works to open original content (as a View too) in colorbox.
But, once I open a colorbox and then close it,the second time I open it, it seems to request the destination URL twice, if I do this three times, then it does performs the request three times and so on. That means it opens several colorboxes with the same content.
Setting "?width=500&height=500&iframe=true" like recommended in http://drupal.org/node/1398020 doess not work.

This is making my application unusable after little time using it, so it's a pretty bad issue.

CommentFileSizeAuthor
#8 colorbox.JPG45.13 KBSusanne Weich
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Susanne Weich’s picture

dolly nyc’s picture

are you sure you set the class to "colorbox-load"? right now it looks like "colorbox-inline"

you also might want to investigate using http://drupal.org/project/colorbox_node if the articles that you are trying to open are nodes

Susanne Weich’s picture

Thanks dolly nyc,

yes- I've already tried colorbox-load and colorbox-inline. I'll try http://drupal.org/project/colorbox_node but it really seems more like a Ajax- problem.

More sugestions are very wellcome.

Susanne Weich’s picture

http://drupal.org/project/colorbox_node doesn't solved the problem.

frjo’s picture

You are opening a complete web page in a Colorbox.

When you do that you must use iframe, there is no way around that.

Susanne Weich’s picture

Thank u frjo,
But also using iframe doesn't solve the problem of opening multiple colorboxes with the same content.

dolly nyc’s picture

@Sue_W Your site still has links using the class "colorbox-inline" not "colorbox-load", and the links don't include "iframe=true"--double check your links and rewrites maybe

also look at http://drupal.org/node/1057418 -- especially last comment #34
you might want to add "colorbox=no" to the link too

Susanne Weich’s picture

FileSize
45.13 KB
Susanne Weich’s picture

dolly nyc u were right:

and the links don't include "iframe=true"

But how did u manage to include ?width=500&height=500&iframe=true&colorbox=no in the Views links?

dolly nyc’s picture

there are several ways to do it -- try this:
In your view, you have the Title which is the link you use to open the colorbox, correct?
Under "Rewrite Results" of that field, check "Output this field as a link"
then in "Link Path" put "[path]?width=500&height=500&iframe=true&colorbox=no"
and in "Link class" put "colorbox-load"

see if that works

arbel’s picture

adding colorbox=no worked for me.

Idan

frjo’s picture

Assigned: Susanne Weich » Unassigned
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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