[TYPO3-english] f:image f:uri.image giving different URLs

Jan Bednarik info at bednarik.org
Sat Jun 13 14:14:27 CEST 2015


Hi Helmut,

thanks for answers. I tried to use image directly, but since this is 
fluidcontent element, the images are retrieved like this:

<f:for each="{v:content.resources.fal(field: 'images')}" as="image">

and then there are actually arrays and not instances of image.

Meanwhile, I've resolved it like this:

<a href="{f:uri.page(pageUid:image.url)}" class="lightbox" rel="lightbox">
<f:image src="{image.uid}" treatIdAsReference="true" height="170"/>
</a>

and that seems to be working too.

Jan

Dne 12. 6. 2015 v 18:49 Helmut Hummel napsal(a):
> Helmut Hummel wrote:
>
>> Or even *MUCH* better: Don't use "src" and "treatIdAsReference" *at all*
>
> I just published an article explaining that a bit more:
>
> http://insight.helhum.io/post/121359113745/resources-the-image-view-helper-and-fal-in-typo3
>
>
> HTH
>
> Kind regards,
> Helmut
>



More information about the TYPO3-english mailing list