Hallo Jan

Ich würde das z.B so machen:

$imageConf = (is_array($this->conf['detailimage.']))
    ? $this->conf['detailimage.']
    : array();
$imageConf['file'] = 'uploads/tx_xyz/'.$pictures[$i];

So werden alle Werte von plugin.tx_xyz_pi1.detailimage übernommen, falls vorhanden.

Gruss, Christian


On 02/28/2011 05:07 PM, Jan Kornblum wrote:
Hallo,

ich möchte im PHP lediglich das "file" vom Image setzen, den Rest der
Config aber aus Typoscript verwenden.

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{
...
}
}
}


_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an