Forums / Setup & design / Flexible absolute files path [SOLVED]
Lo' F.
Tuesday 26 October 2010 12:47:59 pm
Hi again,
I moved an extension package from an eZ installation to another but in here I am having a little problem retrieving the images saved (through ftp, not admin) inside an images folder of the extension folder.
Within the templates I addressed the image files giving a full path ( /extension/ezext/design/ezext/images/ ); however the new installation isn't made in the root folder, like the old one, but inside a subfolder of the root directory so all these image files cannot be found.
It would be a matter of adding this ez container folder to the beginning of each path but I really want to avoid this and make it more flexible instead.
What would you suggest? Thanks..!
loredanaebook.it
Heath
Tuesday 26 October 2010 1:53:24 pm
Hello Lo F,
You might want to checkout the ezimage and ezdesign operators which help avoid having to put full paths of images within templates by converting relative paths into the full path when the template is compiled.
http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Template-operators/URLs/ezimage
http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Template-operators/URLs/ezdesign
Cheers,
Brookins Consulting | http://brookinsconsulting.com/ Certified | http://auth.ez.no/certification/verify/380350 Solutions | http://projects.ez.no/users/community/brookins_consulting eZpedia community documentation project | http://ezpedia.org
Tuesday 26 October 2010 2:18:27 pm
Thank you, Heath! Really helpful!
Tuesday 26 October 2010 2:46:31 pm
Your welcome Lo F!
(Thank you for marking this thread as solved)
Best Wishes,