Jump to content

Recommended Posts

Posted (edited)

I have a repeater image field:

<img src='$repeater->field->url'>

In the browser it appears like this:

<img src='image.jpg->url'>

Why the "->url" is not interpreted? Actually the path should be placed <img src='site/assets/files/123/image.jpg'> !?

Edited by kaz
Posted
4 hours ago, kaz said:

<img src='$repeater->field->url'>

Assuming that code is within a string, try:

echo "<img src='{$repeater->field->url}'>";

 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...