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.
Comment | File | Size | Author |
---|---|---|---|
#8 | colorbox.JPG | 45.13 KB | Susanne Weich |
Comments
Comment #1
Susanne Weich CreditAttribution: Susanne Weich commentedhttp://www.matthiasknecht.info/publikationen is the site
Comment #2
dolly nyc CreditAttribution: dolly nyc commentedare 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
Comment #3
Susanne Weich CreditAttribution: Susanne Weich commentedThanks 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.
Comment #4
Susanne Weich CreditAttribution: Susanne Weich commentedhttp://drupal.org/project/colorbox_node doesn't solved the problem.
Comment #5
frjo CreditAttribution: frjo commentedYou are opening a complete web page in a Colorbox.
When you do that you must use iframe, there is no way around that.
Comment #6
Susanne Weich CreditAttribution: Susanne Weich commentedThank u frjo,
But also using iframe doesn't solve the problem of opening multiple colorboxes with the same content.
Comment #7
dolly nyc CreditAttribution: dolly nyc commented@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
Comment #8
Susanne Weich CreditAttribution: Susanne Weich commentedComment #9
Susanne Weich CreditAttribution: Susanne Weich commenteddolly nyc u were right:
But how did u manage to include ?width=500&height=500&iframe=true&colorbox=no in the Views links?
Comment #10
dolly nyc CreditAttribution: dolly nyc commentedthere 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
Comment #11
arbel CreditAttribution: arbel commentedadding colorbox=no worked for me.
Idan
Comment #12
frjo CreditAttribution: frjo commented