MKhve Posted March 12, 2013 Share Posted March 12, 2013 (edited) Hello! We are making site based on default theme(prestashop version 1.52), but we have made great deal of customization on it. We have added many custom images, which in code has URL like: "/img/ImageName.jpg" (not full URL like: "mydomain.com/img/ImageName.jpg"), we have replaced cart icons and added few others, which are displayed on almost all pages on our site. Everything works fine, except for CMS pages. As you know CMS pages use "/content/" in the URL when friendly URL is enabled to distinct its page ids from product category ids, but the problem is that for some reason it adds "/content/" to the custom image links also, so if the original image URL is: "mydomain.com/img/MyImage.jpg" by friendly URL in CMS pages it is changed to: "mydomain.com/content/img/MyImage.jpg", on which image cannot be reached of course and they do not load, global.css isn't loaded also. We have this problem only when friendly URL is enabled, with it turned off, it works fine. So maybe anyone can help us how to stop Prestashop on CMS pages adding "/content/" to URLs of files which should not have them, thus making them inaccessible. Thanks in advance!.. Edited March 13, 2013 by MKhve (see edit history) Link to comment Share on other sites More sharing options...
MKhve Posted March 13, 2013 Author Share Posted March 13, 2013 bump Link to comment Share on other sites More sharing options...
MKhve Posted March 16, 2013 Author Share Posted March 16, 2013 anyone? Link to comment Share on other sites More sharing options...
vekia Posted March 16, 2013 Share Posted March 16, 2013 it's hard to debug it without an access to your shop, so my questions is: is your shop online? if so, can you provide an URL? How you insert the images in tpl files? Can you show an example of code? Link to comment Share on other sites More sharing options...
MKhve Posted March 16, 2013 Author Share Posted March 16, 2013 (edited) we have solved issue another way, thanks Edited March 16, 2013 by MKhve (see edit history) Link to comment Share on other sites More sharing options...
Smijn1 Posted August 27, 2013 Share Posted August 27, 2013 Hi, care to share how you fixed the problem? Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts