[TYPO3-german] Bilder in typo3temp/pics und API?

Herbert Roider herbert.roider at utanet.at
Tue Dec 27 08:48:41 CET 2005


Peer Haneschk wrote:

> Hallo,
> 
> wie schaffe ich es, in einem eigenen Codeblock ein Bild über die API
> kleinzurechnen. Genau so, wie es auch mit den Standard Bildern gemacht
> wird (bei denen dann ein Link auf /typo3temp/pics/8234882bc.jpg
> erscheint).
> 
> Gruss,
> Peer

Mit diesen php-Code wird ein Bild umgerechnet auf 400Pixel breite oder höhe
(wenn mich nicht alles täuscht, aber einfach probieren).
Dieses Bild kann auch angeklickt werden, um das Original anzuzeigen:

$this->conf["image."]["file"] = "fileadmin/mypic.gif;
$this->conf["image."]["file."]["maxW"] = 10;
$this->conf["image."]["imageLinkWrap"]= 1;
$this->conf["image."]["imageLinkWrap."]["enable"]= 1;
$this->conf["image."]["imageLinkWrap."]["bodyTag"]= "<body>";
$this->conf["image."]["imageLinkWrap."]["wrap"]= "<a
href=\"javascript:close();\"> | </a>";
$this->conf["image."]["imageLinkWrap."]["width"]= 400;
$this->conf["image."]["imageLinkWrap."]["height"]= 400;
$this->conf["image."]["imageLinkWrap."]["JSwindow"]= 1;
$this->conf["image."]["imageLinkWrap."]["JSwindow."]["newWindow"] = 1;
$this->conf["image."]["imageLinkWrap."]["JSwindow."]["expand"] = "17,20";

$content .= $this->cObj->IMAGE($this->conf["image."]);

l.g.
Herbert





More information about the TYPO3-german mailing list