0

我有一个 Typo3 项目,在其中我实现了一个带有 Lightbox 的 Image-Gallery 和以下 TypoScript 代码:

tt_content.image.20.1.imageLinkWrap >
tt_content.image.20.1.imageLinkWrap = 1

tt_content.image.20.1.imageLinkWrap {
  enable = 1
  JSwindow = 0
  directImageLink = 1
  linkParams.ATagParams.dataWrap = class="lightbox" rel="lightbox{field:uid}"
}

现在我遇到了问题,页面上不属于内容的其他图片(例如顶部的徽标)也获得了“lightbox”-class 和 -rel 属性。如何排除不属于图库的所有图像?

谢谢

4

1 回答 1

0

Which version of TYPO3 are you using? Did you know that image records have a checkbox which says "Enlarge on click"? When checked, an anchor tag with a class and a rel attribute is rendered around the image. You can set both in the constants editor of the root TypoScript template in CONTENT. Initially it is set to the values you have chosen in your TypoScript:

class="lightbox" rel="lightbox{field:uid}
于 2013-06-26T07:29:56.370 回答