---
title: "Popup bei Produktbild"
url: "https://www.typo3.net/d/62125-popup-bei-produktbild"
source: "typo3.net"
tags: ["Extensions","Bilder","Frage","PHP"]
created: "2007-05-07"
last_reply: "2007-05-07"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# Popup bei Produktbild

Extensions · 2 Antworten · gestartet 2007-05-07

## Eröffnungsbeitrag

**delooxs** · 2007-05-07 · [Beitrag #1](https://www.typo3.net/d/62125-popup-bei-produktbild/1)

Ich habe die Datei class.tx_ttproducts_image.php ein bisschen erweitert um den Produkttitel mit dem Gifbuilder anzeigen zu lassen. Hier mein Code:

```php
$tmp= $this->pibase->cObj->IMAGE($imageConf); 
$imginfo=$GLOBALS['TSFE']->lastImageInfo; 
$imgBorder['file.']['width']=$imginfo[0];
$imgBorder['file.']['height']=$imginfo[1];
$gifBuilder = array(
'XY' => $imginfo[0].','.$imginfo[1],
'format' => 'jpg',
'1' => 'IMAGE',
'1.' => array(
'file' => $imginfo[3],
 'imageLightbox2' => '1',
'imageLightbox2' => array(
'imageset' => 'myImgSet',
'caption'=> 'I am a imagecaption',
'saveImageShow' => '1',
'printImageShow' => '1',
'presentMode' => '1',
  ),
),
'2' => 'TEXT',
  '2.' => array(
     'text' => $row['title'],
     'offset' => '12,40',
     'fontSize' => '40',
	 'fontFile' => 'fileadmin/fonts/officina.ttf',
	 'fontColor' => 'white',
  ),
'3' => 'TEXT',
'3.' => array(
     'text' => $category_title,
     'offset' => '12,80',
     'fontSize' => '40',
	 'fontFile' => 'fileadmin/fonts/officina.ttf',
	 'fontColor' => 'white',
  ),
);
$imgArr = $this->pibase->cObj->getImgResource('GIFBUILDER', $gifBuilder);
$img['file'] = $imgArr[3];
$markerArray['###IMAGE_FILE###']=$this->pibase->cObj->IMAGE($img).$editpanel.$this->conf['printlink'];
```

Das dumme ist nur dass kein Link generiert wird. Das Bild wird zwar wunderbar angezeigt aber der Link zur imageLightbox2 funktioniert nicht. Ich habe das auch schon mit dem traditionellen imageLinkWrap probiert - funktioniert auch nicht.

Jemand eine Idee an was das liegen könnte?

## Antworten

### [#2](https://www.typo3.net/d/62125-popup-bei-produktbild/2) · steffenk · 2007-05-07

Du brauchst doch nur

```php
imageConf['file.']['imageLightbox2']=1;
$tmp= $this->pibase->cObj->IMAGE($imageConf);
```

dann sollte das Bild mit der Lightbox gehen. Das kann man auch per TS konfigurieren.

### [#3](https://www.typo3.net/d/62125-popup-bei-produktbild/3) · delooxs · 2007-05-07

Das funktioniert schon mal nicht weil ich ja den Titel und die Kategorie in das Bild mit dem Gifbuilder schreibe.

Hat es viel. etwas damit zu tun? Unterstützt der Gifbuilder überhaupt das imageLinkWrap bzw. imageLightbox2?

---

Quelle: „Popup bei Produktbild“, typo3.net, https://www.typo3.net/d/62125-popup-bei-produktbild
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
