0

Recently, I upgraded an EE2 website to EE5.1.2. Before EE upgrade, I imported Playa into Relationships field. Everything working perfectly except file tag within relationship isn't outputting correct file/image path. Code example is as below:

{exp:channel:entries channel="CHANNEL_NAME" limit="1" disable="member_data|pagination" status="open" require_entry="yes"}
{relationship_field}
<img src="{relationship_field:thumb_image}" alt="{relationship_field:title}" />
{/relationship_field}
{/exp:channel:entries}

It might work nicely but not working :(

0

Have you verified your path settings have not changed during the upgrade?

What does the code output?

Should your alt="{title}" actually be alt="{relationship_field:title}"

2
  • Thanks Tim, actually problem is with field field tag {relationship_field:thumb_image} which isn't working. I corrected alt in question. Jan 17 '19 at 5:54
  • So it does output the alt text? I'd first check if the file exists, then if the server paths are correct for the upload folder. Is the image an uploaded image or an image manipulation of an uploaded image? You could also go into the database and see how it's stored there to be sure Jan 17 '19 at 7:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.