2020-04-28, 02:26:08
Hi,
For some reason I don't manage to echo an image on the front end.
I have only 1 image with the image name laptop.png inside:
Category id=1
Category name = HomeCategory
Item id = 1
Item name = first_home_item
field name = image (File upload field)
I searched the ItemManager thread and this is what I found how to echo an image on the front end:
But the image laptop.png does not appear on the front.
What am I doing wrong ?
For some reason I don't manage to echo an image on the front end.
I have only 1 image with the image name laptop.png inside:
Category id=1
Category name = HomeCategory
Item id = 1
Item name = first_home_item
field name = image (File upload field)
I searched the ItemManager thread and this is what I found how to echo an image on the front end:
Code:
echo '<img alt="" src="'. htmlspecialchars($item->fields->image->imagefullurl[0]). '" width="200" >';
But the image laptop.png does not appear on the front.
What am I doing wrong ?