The title should decribe my issue. I tried to get a title in #cboxTitle an it didnt work. Normaly the colorboxplugin should detect the title attribute from the colorbox-link and use this. I added a title manually to this links created by mediagallery, but it didnt work out. I tried the same as well with an simple colorbox iframe load, and it worked as aspected.

I'm quite not sure where the bug is, but it seems to do something with the media_gallery.
Would be glad about some ideas or fixes.

Comments

hydra’s picture

Well finaly I figured out, where the problem was.
In colorbox-display.js in line 34, the title becomes reseted.
title: ' ',
The explenation of this is marked in the comment above the title and looks like this:

         // If 'title' evaluates to false, Colorbox will use the title from the
        // underlying <a> element, which we don't want. Using a space is the
        // officially approved workaround. See
        // http://groups.google.com/group/colorbox/msg/7671ae69708950bf

So would it not be better to provide a default title, instead of disabling it totaly? In my opinion, the title of the colorbox for a certain gallery, should be the defined title of the gallery, this would make semanticly sense. Fo those who realy won't have a title, the possibility still exists to reset it, or maybe a UI solution would make sense.
However, no title is not what the user/developer expects from this kind of functionality.

lsolesen’s picture

Status: Active » Postponed (maintainer needs more info)

Could you please clarify exactly what should be done in the media gallery source code - maybe even supply a patch for others to review?

lsolesen’s picture

Status: Postponed (maintainer needs more info) » Fixed

No activity.

Status: Fixed » Closed (fixed)

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