[Typo3-dev] $this->cObj->IMAGE without any html in it?

Ingmar Schlecht ingmars at web.de
Mon Sep 29 15:05:42 CEST 2003


Dominic Stockdale wrote:
> Thanks Jan. I've got it working with some very messy expressions, I 
> can't help thinking that there must be a cleaner way. I looked at using 
> IMG_RESOURCE in the typoscript but it doesn't seem to offer any sizing.

It seems like I don't see the problem...

Why not just like this:

$conf = array(
   'file' => 'asdf.gif',
   'file.' => array(
     'width' => '200'
   ),
);

$fileName = $this->cObj->IMG_RESOURCE($conf);

- Ingmar





More information about the TYPO3-dev mailing list