When loading/rebuilding my 'live' site, the colorbox_style for some reason defaults to 'Example 1' instead of 'Default'. Causing the captions to not load with the 'hover' part, which we need for our long captions. I've tried deleting the other styles to try and hack/fix the problem, but then I have to resave the Configuration>Colorbox settings and clear all caches for the hover to work again.

Does anyone know why this is happening...it's kind of baffling me right now.

EDIT: It works without an issue on my local version of the site...

Comments

frjo’s picture

Have you checked the Colorbox settings? Tried to resave them?

patty.fresonke’s picture

I have to resave the Configuration>Colorbox settings and clear all caches for the hover to work again.

I don't want to have to go to my live site and resave every time we update it. Is there a way to export Colorbox settings with Features? I don't seem to be able to do that...Or is there some kind of reset in the setup that I'm not seeing that makes it not want to keep my locally saved settings?

frjo’s picture

All the Colorbox settings are normal variables so you can export them in Features with the help of the Strongarm module.

http://drupal.org/project/strongarm

patty.fresonke’s picture

And that's where I seem to have a problem...I don't seem to get anything Colorbox related to come up in the Strongarm section of Features...
I was able to get the colorbox field settings to export when I exported my gallery field. But I can't find a place to select the Admin settings (including the Style setting that doesn't seem to stick) to export them.

patty.fresonke’s picture

Anyone have any ideas why Admin settings aren't exportable? Or have a way to export them?

frjo’s picture

This list of Colorbox variables show up under strongarm for me:

colorbox_caption_trim
colorbox_caption_trim_length
colorbox_compression_type
colorbox_custom_settings_activate
colorbox_fixed
colorbox_image_style
colorbox_initialheight
colorbox_initialwidth
colorbox_inline
colorbox_insert_gallery
colorbox_load
colorbox_maxheight
colorbox_maxwidth
colorbox_opacity
colorbox_overlayclose
colorbox_pages
colorbox_scrolling
colorbox_slideshow
colorbox_slideshowauto
colorbox_slideshowspeed
colorbox_style
colorbox_text_close
colorbox_text_current
colorbox_text_next
colorbox_text_previous
colorbox_text_start
colorbox_text_stop
colorbox_transition_speed
colorbox_transition_type
colorbox_visibility

patty.fresonke’s picture

Okay, so baffled right now. I went into Colorbox admin settings, checked a couple boxes that were previously unchecked, tried to look in features, and all those settings were there.

It's like it didn't see that they were there until I changed something else in that form.
So I'll give this a try and see if now that the variables show up, that they will stick on live...will edit when I get a chance to test this out.

frjo’s picture

Status: Active » Fixed

The variables are only saved to the database when you have done some changes. If you never made any changes the default values are used and then there is no need to move the settings since there are none to move.

patty.fresonke’s picture

But that was my problem, I hadn't made any changes but it was, for some reason, not using the default setting for 'colorbox_style'. Also, I had tried changing the style and resaving to try and trigger the variables to show up in Strongarm, but they did not until I checked some other checkboxes and resaved.

But now that I was able to see and export the 'colorbox_style = default' variable in features, it looks to have kept that setting on my 'live site'.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

add note about local site