0

I've upgraded an ext. from TYPO 6.2 to 8.7 based on the fe_users table. But now image is not showing - only an id. Name and other information are showing correct.

How do I convert the uid to image path? I have followed the instructions on https://fluidtypo3.org/viewhelpers/fluid/master/ImageViewHelper.html

the result is

This is my code

    <f:for each="{feUsers}" as="feUser" key="number" iteration="itemIteration"> 
 <div class="feuser">       
  <f:if condition="{feUser.image}">
    <f:image
     treatIdAsReference="1"
     src="uploads/pics/{feUser.image}"
     title="{feUser.name}"
     alt="{feUser.name}"
     maxWidth="159"
     maxHeight="220"
     width="159c"
     height="220c"
     crop="true"
     cropVariant="default"
    />
   </f:if>
 </div>
</for>
stig
  • 445
  • 1
  • 4
  • 9

1 Answers1

0

you have mixed multiple possibilities:
it is about your first two parameters:

<f:image
  treatIdAsReference="1"
  src="uploads/pics/{feUser.image}"
  :

if you want to use the FAL-id don't add an path (as said by Oliver Hader)

but the better option would be to avoid also the uid and use objects.

In the reference you mentioned you find the attribute image which needs an object in the value. so you should use:

<f:image
  image="{feUser.image}"
  :
Bernd Wilke πφ
  • 10,390
  • 1
  • 19
  • 38