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.
Hey this is a bit of a complex issue but i think the problem comes in with the colorbox module. I have a content type with its display fields both set to use the colorbox module but when i preview a node my images do not display? They do however display when viewing the teaser and the node once its saved.
When i set the display fields back to plain images the node preview displays them fine but then naturally there is no colorbox integration.
Any help would be greatly appreciated. This is the last thing i need to complete to finish of a project.
Comment | File | Size | Author |
---|---|---|---|
#4 | colorbox_preview_837334_4.patch | 984 bytes | frjo |
Comments
Comment #1
UNarmed CreditAttribution: UNarmed commentedWhen i save the node, click edit and then preview it previews fine ... frustration station =/
It looks like the images only display in a preview if the node has already been saved.
Comment #2
frjo CreditAttribution: frjo commentedGo to Colorbox settings, at the bottom you find "Advanced settings". There you find a "Deactivate Colorbox on specific pages" setting that may clear things up.
If you really are using beta 3 I recommend you update to beta 4.
Fredrik
Comment #3
UNarmed CreditAttribution: UNarmed commentedHey frjo i updates to the beta 4 version and i have also tried the advanced settings but none of it seemed to make a difference.
Comment #4
frjo CreditAttribution: frjo commentedYou mean that the images does not preview at all. I first thought it was only the Colorbox feature that was nor working in preview.
Could you try out this patch and see if it fixes this problem?
Comment #5
UNarmed CreditAttribution: UNarmed commentedYes when i preview new content the images do not display in the preview. Thanks for the patch i will give it a try and report back =]
Comment #6
UNarmed CreditAttribution: UNarmed commentedAh great that worked =D I dont have a clue what the problem was but thanks a bunch for the fix!
Comment #7
frjo CreditAttribution: frjo commentedThanks for testing, and reporting, it! Committed to 6-dev now so will be part of the next official release.
The theme function was checking for a node id to early, when you preview the node does not have an id yet.
Comment #8
UNarmed CreditAttribution: UNarmed commentedAh ok i see =] Well thanks again for the help and glad i could help in turn haha.