[TYPO3-german] $this->cObj->IMAGE, Parameter

Patrick Rodacker patrick.rodacker at the-reflection.de
Mon Feb 28 17:16:19 CET 2011


Moin Jan,

Am 28.02.11 17:07, schrieb Jan Kornblum:

> Nur wie hieße der Key des Arrays bzw. wie geben ich das an??? Ich möchte
> nicht "altText", "StdWrap" und "sonstWas" fest im PHP vercoden, sondern
> so flexibel sein, dass wenn unterhalb von "detailimage" weitere
> eigenschaften kommen, diese mit geladen werden...
>
> Dnake und Gruss, Jan
>
> $this->cObj->IMAGE(array(
> 'file' => 'uploads/tx_xyz/'.$pictures[$i],
> 'XYZ' => $this->conf['detailimage.'] <--- ???
> ));
>
>
> plugin.tx_xyz_pi1{
> detailimage{
> altText = ...
> sonstWas = ...
> stdWrap.override.cObject = IMAGE
> stdWrap.override.cObject{
> ...
> }
> }
> }


versuch mal folgendes:

$imageConf = $this->conf['detailimage.'];
$imageConf['file'] = 'uploads/tx_xyz/'.$pictures[$i];
$image = $this->cObj->IMAGE($imageConf);

Ist jetzt nicht getestet, sollte aber klappen denke ich ;-)

Besten Gruß
Patrick


More information about the TYPO3-german mailing list