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

Jan-Hendrik Heuing [netfielders] jh at netfielders.de
Wed Sep 17 19:18:08 CEST 2003


Today I've been looking for something like that and didn't get it to work
immediatly. That is why I just set up some PHP which does the job...

I am quite sure there is a "nice" way, and maybe I'll remember after having
a break ;)

10 = USER
10.userFunc = user_image->image
10.cObj = IMAGE
10.cObj.file =

PHP:
$temp = $this->cObj->cObjGetSingle($conf["cObj"],$conf["cObj."]);

Now you've got the image tag in $temp, which you can explode or regex or
whatever to get the path...

jh

"Dominic Stockdale" <dom at 3ev.com> schrieb im Newsbeitrag
news:mailman.1063793782.2155.typo3-dev at lists.netfielders.de...
> Hello,
>
> I'm trying to get my plugin to resize images on the fly and output the
> just the new path to the images and the new file names for a flash movie
> so I don't want all the stdWrap properties.
>
> I thought I could use the code below and strip out the typoscript doing
> the wrapping etc. I've been looking around for two days now, I'd
> appreciate any advice clues if anyones got any.
>
> cheers,
>
> Dom
>
> $theImages = explode(",",$this->internal["currentRow"][$fN]);
>
> $firstImagecObj = $this->conf['firstImagecObj.'];
> $firstImagecObj['file'] = 'uploads/tx_domswf/'.$theImages[0];
>
> $firstImage = $this->cObj->IMAGE($firstImagecObj);
>






More information about the TYPO3-dev mailing list