Issue Feature Closed

#62866Add additional features to "lightbox" click enlarge link

Urs Braem 11/11/14, 17:48 updated 06/20/24, 08:48

Description

The “Lightbox” settings in css_styled_content are very helpful.

What I’ve been missing was the possibility to add e.g. the image’s caption (file:current:description) to the lightbox link.

I added it as such:

tt_content.image.20.1.imageLinkWrap.linkParams.ATagParams.dataWrap =  class="{$styles.content.imgtext.linkWrap.lightboxCssClass}" rel="{$styles.content.imgtext.linkWrap.lightboxRelAttribute}" title="{file:current:description}"

Now this could be either made a setting (lighbox link title), or simply combine all that into one constant, e.g.

class=“lightbox” rel=“lightbox[{field:uid}]” title=”{file:current:description}”

so it can be edited directly, to avoid bloated constant lists.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.