|Status:||patch (to be ported)|
The dubious amount of field formatters for Lightbox2 had been bugging me for quite some while.
I'm talking about the multitude of "lightbox/lightshow__image style__lightbox style" style formatters.
Imagine having 10 image styles (that's not so far fetched, I think). That will lead to no less than a hundred formatters in the display list!
I propose these obviously config level settings to be handled by not additional formatters, but the field_formatter_settings_form hook (as such settings should be).
I've implemented such a single formatter with the ability to configure the following settings per field instance:
- Lightbox type: lightshow or single lightbox.
- Image style: a select list of image styles. What to display as a thumbnail.
- Lightbox style: a select list of image styles. What to display inside the lightbox itself.
- Caption field: a list of image entity fields to choose which field to display as a caption (this one could be later replaced by some more refined display type, e.g. an added 'lightbox' display mode for image file types, etc.).
I've attached a patch including these features, hope it can be ported a.s.a.p.