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

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -