eZ Community » Forums » Developer » Fetch template from admin replace...
expandshrink

Fetch template from admin replace path of the images with admin path

Fetch template from admin replace path of the images with admin path

Thursday 12 July 2012 10:47:28 am - 1 reply

I was created an admin extension to send emails from the admin to the users.

Templates for email was already made and used with cronjob but client want to send manually.

Problem is the path of the images using attribute_view_gui when parse layout are relative to admin site access not the correct image storage, that mean pictures are not available in email send for the users.

http://mysite.com/admin/var/storage/images/image.png

Instead of:

http://mysite.com/var/storage/images/image.png

How can I fix this?

Thank you!

Thursday 12 July 2012 12:01:01 pm

Looking over the code and URL operators seems only way to fix this is to use ezroot instead of ezurl.

expandshrink

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

36 542 Users on board!

Forums menu