[Typo3-UG Oesterreich] Bild verkleinern und Click-to-enlarge

Bernhard Kraft kraftb at mokka.at
Thu Oct 7 17:36:31 CEST 2004


Wolfgang Klinger wrote:

>  Hallo!
> 
>  Bernhard Kraft schrieb folgendes am 07.10.2004:
> 
>>BTW: Wo wird $this->cObj dokumentiert ? In der Doku "Typo3 Core APIs" hab
>>ichs ned gefunden ...
> 
> 
>  Ist eine Instanz von tslib_cObj ;-)
>  und ist z.B. mit der Erweiterung "extdeveval" dokumentiert...
> 

Danke das hat mir gefehlt ...

Ich habe jetzt laut Reference:
function imageLinkWrap($string,$imageFile,$conf)
$string		String to wrap, probably an <img> tag
$imageFile	The original image file
$conf		TypoScript properties for the "imageLinkWrap" function

folgendes PHP Skript zusammengebastelt :
-------------------- snip ------------------------------
	 $img_file = "uploads/tx_egtheme/".$row["screenshot"];

          $imgTSConfig = Array();
          $imgTSConfig["file"] = $img_file;
          $imgTSConfig["file."]["width"] = "100m";
          $imgTSConfig["file."]["height"] = "100m";
          $imagecode .= $this->cObj->IMAGE($imgTSConfig);

          $tmpconf["JSwindow"] = 1;
          $tmpconf["bodyTag"] = "<body style=\"margin: 0px; padding: 0px;\">";
          $tmpconf["JSwindow."]["newWindow"] = 0;
          $tmpconf["JSwindow."]["expand"] = "0,0";

          $img = $this->cObj->imageLinkWrap($imagecode, $img_file, $tmpconf);

          $content .= $img;
-------------------- snip ------------------------------

Das ergebniss ist das er mir das bild zwar skaliert (der obere teil
funktioniert also) - jedoch keinen Click-To-Enlarge link setzt.

Es kommt in "$img" nur das Plain Image Tag zurück so wie es auch
schon in "$imagecode" steht ...

Stimmt irgendwas in "$tmpconf" nicht ???

grüsse,
Bernhard
-----------------------------------------
Bernhard Kraft
<kraftb at mokka.at>

MOKKA MEDIENAGENTUR GMBH
Mariahilferstrasse 170
1150 Wien
T: 01 895 33 33 50
M: 0676 560 14 14
F: 01 895 33 33 20
www.mokka.at
-----------------------------------------




More information about the TYPO3-at mailing list