This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » Setup & design » Can't show images from /var/ folder...

Can't show images from /var/ folder in ez template

Can't show images from /var/ folder in ez template

Friday 08 January 2016 4:27:46 pm - 6 replies

I'm beginner with EZ Publish, I'm trying to use imageMagick, now I can upload image and it save my image in the var folder but when I try to use the image in my template <img src="/var/ezflow_site/storage/images/myimage.png" >  there are nothing that is print ( image isn't print). I upply chmod in my var folder like extension folder.

I'm runing version 4.5.0 of eZ Publish

Modified on Friday 08 January 2016 4:28:40 pm by Tsubasa Capi

Friday 08 January 2016 5:16:13 pm

Are you uploading the image through the Administration Interface to a content object or directly to the file system? The ImageMagick integration in eZ Publish is meant to operate on images uploaded to image fields in the Administration Interface. Then, you template you would use attribute_view_gui ( like this:

{attribute_view_gui attribute=$node.data_map.myimage image_class='large'}

... where "myimage" is the attribute identifier and "large" is the image alias (defined in an override of image.ini

Friday 08 January 2016 5:44:56 pm

Thanks for your reply Peter.

I upload the image through the Administration Interface. And I'm using attribute_view_gui  in my template.

When I show the source code of my page I have <img src="/var/ezflow_site/storage/images/myimage.png" > but I can't see the image in my browser.

Thursday 14 January 2016 10:12:18 am

The image path that you paste is a sample?
It sould be /var/ezflow_site/storage/images/<ID>-<VERSION>-<LANGUAGE>/myimage.png

Have you check if your virtual host settings has the rule RewriteRule ^/var/([^/]+/)?storage/images(-versioned)?/.* - [L] ?

Friday 15 January 2016 3:33:59 pm

Hi Luca, Thanks

I found a lot of things which are wrong in my virtual host settings. I will keep you update when I apply the change to my virtual host settings.

Tuesday 26 January 2016 4:39:05 pm

Thanks @Luca it works perfectly now 

Monday 27 November 2017 9:23:37 am

The reply has been removed because of violation of forum rules.


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from