---
title: "wt_gallery mit typoscript für lightbox-support: rel =\"{field:uid}\" ???"
url: "https://www.typo3.net/d/97806-wt-gallery-mit-typoscript-fuer-lightbox-support-rel-fielduid"
source: "typo3.net"
tags: ["Extensions","Bilder","Frage","Links"]
created: "2010-03-25"
last_reply: "2010-03-26"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# wt_gallery mit typoscript für lightbox-support: rel ="{field:uid}" ???

Extensions · 2 Antworten · gestartet 2010-03-25

## Eröffnungsbeitrag

**macolo** · 2010-03-25 · [Beitrag #1](https://www.typo3.net/d/97806-wt-gallery-mit-typoscript-fuer-lightbox-support-rel-fielduid/1)

Hola,

Ich wollte folgenden TS-Code

```typoscript
plugin.tx_chgallery_pi1.gallery.image.imageLinkWrap {	
		enable = 1
		typolink.ATagParams.dataWrap = rel="{field:uid}"
		typolink.insertData = 1				
		}
	}
```

mit wt_gallery verwenden, weil ich mehrere Gallerien auf einer Seite habe und die lightbox-Alben (fancybox) jeweils auf ein wt_gallery-Plugin beschränken möchte. Fancybox-Alben werden aus A-Tags mit identischen REL-Attributen zusammengesetzt.

Leider scheint das Typoscript nicht zu funktionieren (und ehrlich gesagt ich bezweifle auch, dass das TS mit chgallery funktioniert). Der Output ist leer:

```html
rel=""
```

Gibt es eine Lösung, um die rel-Tags pro gallery Plugin unterschiedlich zu befüllen? Sollte im HTML-Code schematisch so aussehen:

```php
<wt_gallery>
<a href="bild" rel="uid_274"><img alt="" /></a>
<a href="bild2" rel="uid_274"><img alt="" /></a>
<a href="bild3" rel="uid_274"><img alt="" /></a>
</wt_gallery>
<wt_gallery>
<a href="bild" rel="uid_275"><img alt="" /></a>
<a href="bild2" rel="uid_275"><img alt="" /></a>
<a href="bild3" rel="uid_275"><img alt="" /></a>
</wt_gallery>
<wt_gallery>
<a href="bild" rel="uid_276"><img alt="" /></a>
<a href="bild2" rel="uid_276"><img alt="" /></a>
<a href="bild3" rel="uid_276"><img alt="" /></a>
</wt_gallery>
```

Mein TS, das bereits funktioniert,sieht so aus:

```typoscript
### wt gallery lightbox support
plugin.tx_wtgallery_pi1 {
   list {
      image = IMAGE
      image {
         imageLinkWrap.typolink {
         parameter.cObject = IMG_RESOURCE
         parameter.cObject.file.import.field = picture
         parameter.cObject.file.maxW = 600
         parameter.cObject.file.maxH = 600
         ATagParams.dataWrap = class="fb_gallery" rel="fb_gallery"
        }
      }
   }
}
```

Besten Dank für Hinweise, Work Arounds oder Lösungen!!!

Mario

## Antworten

### [#2](https://www.typo3.net/d/97806-wt-gallery-mit-typoscript-fuer-lightbox-support-rel-fielduid/2) · einpraegsam.​net · 2010-03-26

Ins Blaue:

```typoscript
ATagParams.cObject = TEXT
ATagParams.cObject.field = uid
ATagParams.cObject.wrap = rel="|"
```

### [#3](https://www.typo3.net/d/97806-wt-gallery-mit-typoscript-fuer-lightbox-support-rel-fielduid/3) · macolo · 2010-03-26

Danke für Deine Antwort Alexander. Das funktioniert nicht, aber Deine Antwort und Google haben mich auf die Lösung gebracht:

"field:" bezieht sich immer auf den Context. Im Fall von wt_gallery ist der context

```typoscript
plugin.tx_wtgallery_pi1.list.image = IMAGE
```

<http://www.mail-archive.com/typo3-english@lists.netfielders.de/msg11927.html>

Peter Klein hatte die Antwort:

```typoscript
ATagParams.dataWrap = "{debug:data}"
```

gibt alle Felder und Werte aus, die in diesem Kontext genutzt werden können. Kenntnis von "debug:data" zu haben wird meine TYPO3-Erfahrung revolutionieren! Ich hab schon so oft mit "field:" herumgepfuscht ohne zu wissen, was möglich ist und was nicht.

Für diese Problemstellung bietet sich "currentfolder" an.

Falls uid mal nötig sein sollte, bin ich sicher, dass es ein einfaches ist, das wt_gallery plugin zu patchen.

Besten Dank und viele Grüsse

Mario

---

Quelle: „wt_gallery mit typoscript für lightbox-support: rel ="{field:uid}" ???“, typo3.net, https://www.typo3.net/d/97806-wt-gallery-mit-typoscript-fuer-lightbox-support-rel-fielduid
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
