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.

CommentFileSizeAuthor
#4 colorbox_preview_837334_4.patch984 bytesfrjo
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

UNarmed’s picture

When 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.

frjo’s picture

Version: 6.x-1.0-beta3 » 6.x-1.0-beta4

Go 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

UNarmed’s picture

Hey 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.

frjo’s picture

Status: Active » Needs review
FileSize
984 bytes

You 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?

UNarmed’s picture

Yes 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 =]

UNarmed’s picture

Ah great that worked =D I dont have a clue what the problem was but thanks a bunch for the fix!

frjo’s picture

Assigned: Unassigned » frjo
Category: support » bug
Status: Needs review » Fixed

Thanks 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.

UNarmed’s picture

Ah ok i see =] Well thanks again for the help and glad i could help in turn haha.

Status: Fixed » Closed (fixed)

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