Issue Bug Rejected

#72779Lightbox : grouping images

Michael Kasten 01/17/16, 17:36 updated 01/29/18, 16:02

Description

Normaly the rel attribute is used (imho not the best way, but doesn’t matter here) for grouping images that should be show in a lightbox

The “old” “css_styled_content” works with this TypoScript:

tt_content.image.20.1.imageLinkWrap.linkParams.ATagParams.dataWrap = class="lightbox" rel="lightbox{field:uid}"}]"

The field:uid contains the UID from the TCE, so all images get the same uid by the TCE

Now this contains “fluid_styled_content”:

lib.fluidContent.settings.media.popup.linkParams.ATagParams.dataWrap = class="lightbox" rel="lightbox[{field:uid}]"

at the first look it should be the same, but the field:uid contains the page id, so all images at on page get the same id and grouping the images is impossible.

Im not sure, but it should be somthing like this:

lib.fluidContent.settings.media.popup.linkParams.ATagParams.dataWrap = class="lightbox" rel="lightbox[{data:uid}]"

At the long term: to use the data attribute like ‘data-lightbox’ is imho the better way to get a relation between the images, the rel attribute is for logical relations.

Reviews 1