Hi I'm working with FluidTYPO3 and the latest TYPO3 Core 7.6 and Flux/Fluid Extensions.
I'm using a FAL-relation with:
<flux:field.inline.fal name="backgroundimage" minItems="1" maxItems="1" />
Now I can show my Image in frontend with the following snippet (the for/each is obsolet, I only have one image):
<f:for each="{v:content.resources.fal(field: 'backgroundimage')}" as="image">
<f:image treatIdAsReference="1" src="{image.id}" alt=""/><br/>
</f:for>
The image will be rendering like <img src="fileadmin/user_upload/.."
But I need my Image as a Background Image, so I've tried:
<f:for each="{v:content.resources.fal(field: 'backgroundimage')}" as="image">
<div class="back" style="background-image: url('{image.id}');"></div>
</f:for>
But I'll get .. <div class="back" style="background-image: url('1:/Editors_English/image.jpg');"></div>
I think the treatIdAsReference is missing, but how does it works? I don't know .. thanks for your help.