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

Dominic Stockdale dom at 3ev.com
Thu Sep 18 08:46:56 CEST 2003


Jan-Hendrik Heuing [netfielders] wrote:
> 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

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.

Anyway as it all works now I'll come back and clean it up later.

Cheers,

Dom





More information about the TYPO3-dev mailing list