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

Jan Bednarik info at bednarik.org
Mon Jun 15 20:13:17 CEST 2015


Hi,

actually {images} was just a number (of relations) - using 6.2, latest 
fluidcontent.

Jan

Dne 15. 6. 2015 v 8:48 bernd wilke napsal(a):
> Am 13.06.15 um 14:14 schrieb Jan Bednarik:
>> 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>
>
> in fluidcontent you have access to all your defined variables without
> the v:content.resources VH. so you should try:
>
> <f:for each="{images}" as="image">
> :
> <a href="{f:uri.image(image:image)}" class="lightbox" rel="lightbox">
>     <f:image image="{image}" height="170"/>
> </a>
> :
> </f:for>
>
>
> bernd



More information about the TYPO3-english mailing list