Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When u change Image Path settings for example add pictures/[node:nid] in File path (possible thanks another great module - http://drupal.org/project/filefield_paths) Colorbox won't show up :(
Comment | File | Size | Author |
---|---|---|---|
#4 | test-image.zip | 6.85 KB | spamator12 |
Comments
Comment #1
frjo CreditAttribution: frjo commentedDo you have a link to an example site with this problem?
It's a local site you can save an example page as HTML and attach it here.
Comment #2
hutch CreditAttribution: hutch commentedIf the method you are using, whatever it may be, does not add 'class="colorbox"' to the anchor tag which points to the image you want to display then colorbox will not display it. So look at the source html and figure out how to get your method to do that.
eg
Comment #3
spamator12 CreditAttribution: spamator12 commentedHi. Yea it's localhost machine. I want to make a nice gallery so I'm testing few modules like colorbox, lightbox2, filefields addons.
Colorbox do add
class="colorbox colorbox-insert-image"
but after using FileField Paths the patch that colorbox use to link to the picture is outdated. I guess is something like "I should link picture to this place but FileField Paths change the location location and I did not receive info where I should link it now." So the the old link dosen't work. Files are saved corectly (with FileField Paths File path settings).Comment #4
spamator12 CreditAttribution: spamator12 commentedI did not have mobile Internet here - I have uninstall all additional modules - here is a page.
Comment #5
kerios83 CreditAttribution: kerios83 commentedHmm after install FileField Paths - colorbox is completely lost. iframe is displayed but with an error message.
I looks like that but actually all links and paths to images/content looks like normal patch without the FileField Paths tokens. So when you are using path like:
mygallery/myimages/[node:nid] the path in page looks like mygallery/myimages. And colorbox is using this patch. I guess that FileField Paths write somewhere in database that mygallery/myimages = mygallery/myimages/[node:nid] now, but colorbox is not getting that data. I don't know this bug is more Colorbox or FileField Paths related. I hope some Drupal guru look at this and fix it fast cause it's not looks so complicated. I must say that colorbox and FileField is a nice combination ! I would use those two my self if they had better cooperation :)
Comment #6
frjo CreditAttribution: frjo commentedWhen I test Colorbox with FileField Paths it seems to work just as it should.
You mention the class "colorbox-insert-image", could it be that your are using the Insert module? Could it then be that you have inserted some code with the Insert feature and then afterwards changed the path with the help of the FileField Paths module?
If that is the case you need to remove the code you inserted and insert it again for it to be updated.
Comment #7
spamator12 CreditAttribution: spamator12 commented@frjo you are right I'm using Inset module to add pictures to the gallery. I have inserted it (picture) again I have even create a new content and added some images to it and it still don't link to the picture. I have "This image could not be loaded" error all the time...
When I add picture via TINY MCE and add link class "colorbox" to it - image is displayed propertly in colorbox. When add image by normal field_image not related with insert - no problem. Only when adding images with Enable insert button (filefield patch is used also) option cause colorbox to not display the image.
Comment #8
frjo CreditAttribution: frjo commented(Wrong issue, sorry.)
Comment #9
lsolesen CreditAttribution: lsolesen commentedHas your problem been solved. Could you share with the community?
Comment #10
frjo CreditAttribution: frjo commented