typo3 - PHP 1 is displayed instead of an image -


public function main($content, array $conf) {     $this->conf = $conf;     $this->pi_setpivardefaults();     $this->pi_loadll();       $content = '';      $background_image = $this->cobj->parentrecord['data']['media'];      // wenn ein bild vorhanden ist     if ($background_image != '') {         $content .= '<img src="uploads/media/'.$background_image.'" alt="" title="" width="100%" />';     }      return $this->pi_wrapinbaseclass($content); } 

when expecting html i'm getting path this:

<img src="uploads/media/1" alt="" title="" width="100%"> 

this not written me that's why it's understand why behaves way does. appreciate tips.

['data']['media'] field used fal. field contains number of references.

you need resolve these reference fal api, may take here


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -