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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -