Currently, the full-size images can be displayed with thickbox or lightbox2 by simply typing "class=thickbox" or "rel=lightbox[grouping]" into the link attributes field. Those modules will also use the link's title attribute as the full-size image's caption, but I couldn't find any way to pass a dynamic value through that field.

This patch adds a new checkbox field onto the ulink_imagecache settings form at /admin/settings/ulink/image

When checked, the normal title attribute in $link['attributes']['title'] is also output as the title attribute for the link to the full-size image.

Comments

garthee’s picture

Status: Needs review » Closed (won't fix)

The option is already available

For instance, by creating a macro "tb"=>"class=thickbox" in General settings will make this available with
[l-tb|path_to_image|text|title=my_title]

But when title attribute is absent in additional attribute sections, it uses text as title thus
[l-tb|path_to_image|my_title]

will be sufficient.

Note it is the previously created macro that will add class attribute automatically when [l-tb .. is used instead or [l..