[TYPO3-german] Extension: IMAGE und IMG_RESOURCE // Typoscript Konfiguration

ND arosa at gmx.com
Thu Jul 29 00:21:38 CEST 2010


Habs scheinbar gefunden:

$marker['###IMAGE###']=$this->cObj->cObjGetSingle($this->conf["detailView."]["img"],$this->conf["detailView."]["img."]);

Habe übersehen, dass bei cObjGetSingle zweimal 
$this->conf["detailView."]["img."] verwenden kann, nur beim ersten Mal ohne 
abschließenden "."

"ND" <arosa at gmx.com> schrieb im Newsbeitrag 
news:mailman.1.1280355195.15816.typo3-german at lists.typo3.org...
> Hallo,
>
> momentan habe ich als Typoscript Config für mein Plugin folgendes:
>
> plugin.tx_ext_pi1.detailView{
>  img = IMAGE
>  img{
>    file.width = 100
>    ...
>  }
> }
>
> ...und in der pi1-Klasse...
>
> 
> $this->conf["detailView."]["img."]["file"]="uploads/tx_ext/".$record['image'];
> 
> $marker['###IMAGE###']=$this->cObj->IMAGE($this->conf["detailView."]["img."]);
>
> Jetzt will ich aber über Typoscript dem "detailView.img" flexibel entweder 
> IMAGE oder IMG_RESOURCE zuweisen. Nur wie kann ich das dann im PHP 
> dynamisch verwerten bzw. rendern, dass das jeweils richtige Objekt erzeugt 
> wird?
>
> Danke! 



More information about the TYPO3-german mailing list