[TYPO3-german] Pop Up für Bilder

Corrado Viotto corrado at corrado.li
Fri Jan 4 15:03:42 CET 2008


Widmann, Manfred schrieb:

> 
> Hi Corrado!
> 
> Ich mach das in vielen Extensions so:
> 
> 01     $image = explode(',',$row["picture"]); // Nur erstes Bild wird 
> verarbeitet
> 02     $conf["picture."]["file"]                                     = 
> 'uploads/tx_wmcontact/' . $image[0];
> 03     if ($conf["picture."]["file."]["maxW"] == "")
> 04       $conf["picture."]["file."]["maxW"]                          = 
> "200m";
> 05     if ($conf["picture."]["border"] == "")
> 06       $conf["picture."]["border"]                                 = "0";
> 07     $conf["picture."]["altText"]                                  = 
> $title . " " . $firstname . " " . $lastname;
> 08     $conf["picture."]["imageLinkWrap"]                            = 1;
> 09     $conf["picture."]["imageLinkWrap."]["enable"]                 = 1;
> 10     if ($conf["onClickLightbox"]) {  // use Lightbox from Ext. pmkslinbox
> 11       $conf["picture."]["imageLinkWrap."]["typolink."]["title"]      = 
> $title . " " . $firstname . " " . $lastname;
> 12       $conf["picture."]["imageLinkWrap."]["typolink."]["parameter"]  = 
> 'uploads/tx_wmcontact/' . $image[0];
> 13       $conf["picture."]["imageLinkWrap."]["typolink."]["ATagParams"] = 
> 'rel="lightbox"';
> 14     }
> 15     else {                           // use simple "on Click enlarge" 
> mechanism
> 16       $conf["picture."]["imageLinkWrap."]["title"]                   = 
> $title . " " . $firstname . " " . $lastname;
> 17       $conf["picture."]["imageLinkWrap."]["bodyTag"]                 = 
> '<BODY bgColor="#B8D0EC">';
> 18       $conf["picture."]["imageLinkWrap."]["wrap"]                    = 
> '<A href="javascript:close();"> | </A>';
> 19       $conf["picture."]["imageLinkWrap."]["JSwindow"]                = 1;
> 20       if ($conf["picture."]["imageLinkWrap."]["JSwindow."]["expand"] == 
> "")
> 21         $conf["picture."]["imageLinkWrap."]["JSwindow."]["expand"]   = 
> "5,5";
> 22       $conf["picture."]["imageLinkWrap."]["JSwindow."]["newWindow"]  = 1;
> 23     }
> 24
> 25     $picture = $this->cObj->IMAGE($conf["picture."]);
> 
> zu 1: $row["picture"] kommt aus der Datenbank
> zu 2 - 25: Ich bekomme das IMAGE-Objekt aus dem TS-Code, somit kann man im 
> TS-Template ziemlichen Einfluss auf das rendering des Bildes nehmen
> zu 7: $title, $firstname, $lastname kommen indirekt aus der DB
> zu 11 - 13: funktioniert nur, wenn die Extension pmkslimbox installiert ist: 
> Dann wird das Bild mit JavaScript eingeblendet, schaut gut aus
> zu 16 - 22: herkömmlicher "On Click Enlarge"-Mechanismus
> zu 25: Rendern des Bildes durch IMAGE-Methode
> 
> hth
> Manfred 
> 
>
Vielen Dank
Leider sehe ich nicht, wie das mein Problem löst, dass ein und selbe 
Bild   zwei mal in versch. Grössen anzuzeigen. Je nachdem, ob Single 
oder Listview


More information about the TYPO3-german mailing list