kaz Posted April 17, 2021 Share Posted April 17, 2021 (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 April 17, 2021 by kaz Link to comment Share on other sites More sharing options...
elabx Posted April 17, 2021 Share Posted April 17, 2021 4 hours ago, kaz said: <img src='$repeater->field->url'> Assuming that code is within a string, try: echo "<img src='{$repeater->field->url}'>"; 1 Link to comment Share on other sites More sharing options...
kaz Posted April 18, 2021 Author Share Posted April 18, 2021 such a 'little thing', and it works. Thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now