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

ND arosa at gmx.com
Thu Jul 29 00:08:01 CEST 2010


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