Jump to content

Edit History

pullidea-dev

pullidea-dev

Look at the below screenshot. The image path "/img/tmp/product_mini_1_1.jpg" works. Is the path "/modules/MyModule/view/img/img.png" is correct one?

 

image.thumb.png.798e161b41dc7074ac7dd5aa0abe280d.png

pullidea-dev

pullidea-dev

On 10/19/2021 at 6:27 AM, krekk said:

 

<img src="/modules/MyModule/view/img/img.png">

 

Look at the below screenshot. The image path "/img/tmp/product_mini_1_1.jpg" works. Is the path "/modules/MyModule/view/img/img.png" is correct one?

 

image.thumb.png.798e161b41dc7074ac7dd5aa0abe280d.png

pullidea-dev

pullidea-dev

On 10/19/2021 at 6:27 AM, krekk said:

Hi! i attempted to use ImageColumn type in my grid, but i don't really understand how to link the images i want to use in the grid. I looked up the presta documentation about the column type, but it didn't say anything about it. As far as i understand i have to make a column in my sql table dedicated to img urls, but i don't really know for example how to link for example "MyModule/view/img/img.png". I tried many ways of linking the image, but none worked.

When i inspect the image element in my browser it gets the link from the db, but its broken obviously. heres the generated html:

<img src="/modules/MyModule/view/img/img.png">

 

Look at the below screenshot. The image path "/img/tmp/product_mini_1_1.jpg" works. Is the path "/modules/MyModule/view/img/img.png" is correct one?

 

image.thumb.png.798e161b41dc7074ac7dd5aa0abe280d.png

×
×
  • Create New...