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

Jan Bednarik info at bednarik.org
Tue Jun 9 21:22:54 CEST 2015


Hi all,

I have a fluidcontent with FAL:

<flux:field.inline.fal name="images" label="Obrázky" 
enabledControls="{dragdrop:true}" collapseAll="true" maxItems="9999"/>

And then I'm displaying them in for-each as:

<a href="{f:uri.image(src:image.uid,treatIdAsReference:true)}" 
class="lightbox" rel="lightbox">
                             <f:image src="{image.uid}" 
treatIdAsReference="true" width="100"/>
                         </a>

The problem is that the shown image is correct, but the URL in <a> tag 
is wrong.

The image is correctly loaded where the "image.uid" belongs to 
sys_file_reference and the reference points to the correct sys_file. The 
uri.image however points to image where the uid is directly from sys_file.

Let's give example:

sys_file - uid 10 - identifier - A.jpg
sys_file_reference - uid 10 - uid_foreign - 20
sys_file - uid 20 - identifier - B.jpg

so when the image.uid is 10, result is

<a href="A.jpg"><img src="B.jpg"></a>

Any idea what I'm doing wrong?

Jan


More information about the TYPO3-english mailing list