The TYPO3-Extension cl_jquery_fancybox enhances the click-to-enlarge capability of with the beautiful “fancybox-effect”.
Sometimes you do not only want to enlarge the same picture, but you want to open a different image in the lightbox (thumbnail pictureOne.jpg opens picure2.jpg). You can add a file-link, but unfortunately the lightbox-effect disappears
Just add this line of code to typoscript and all images with a filelink get a lightbox-class:
1 |
tt_content.image.20.1.imageLinkWrap.typolink.ATagParams.dataWrap = class="{$styles.content.imgtext.linkWrap.lightboxCssClass}" data-fancybox-group="lightbox{field:uid}" |
(worked with TYPO3 6.1.6 & cl_jquery_fancybox 3.0.6)