[TYPO3-dev] File reference using Extbase/Fluid/FAL and backwards compatibility
Dennis Luemkemann
dennis.luemkemann at gmx.de
Tue Nov 12 23:05:17 CET 2013
Frans,
> public function getImage1() {
> return $this->image1;
> }
> Should be enough.
that's what I thought, but then I copy&pasted the code from the wiki article.
> And then in fluid
>
> <f:image src="{object.image1.uid}" width="200" treatIdAsReference="1"/>
adding treatIdAsReference="1" solved the problem. Somehow I must have overlooked that.
> Maybe you can use this working example as reference. Are multiple
> references instead of one.
> https://github.com/fsaris/newsfal
I'll have a look.
Thank you for your help!
Dennis
More information about the TYPO3-dev
mailing list