[TYPO3-dev] FAL image path in Extbase Controller
Klaus Heuer
post at heuer-illustration.de
Sat Mar 29 17:58:01 CET 2014
Hi List,
I need the whole image path in an Extbase Controller (background: I have
to set headerdata, example: og image tag)
Model:
/**
* Image
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
*/
protected $image;
/**
* Returns the image
*
* @return
\TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference>
$image
*/
public function getImage() {
return $this->image;
}
This works in Fluid well, but how to received the image path in Extbase?
$myObject->getImage() didn't work.
Is there a 'build in solution' or must I build my own query with mapped
tables?
Thanks for any hints.
Klaus
More information about the TYPO3-dev
mailing list