Guest bassyard Posted May 26, 2005 Share Posted May 26, 2005 Does anyone have an idea what relative link I have to use for an image inside viewprod.tpl ? I used a static link for now but I don't want to change all the links if I move it from my testserver to the real server... Quote Link to comment Share on other sites More sharing options...
Guest johnoconnor Posted June 6, 2005 Share Posted June 6, 2005 Relative to what? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 6, 2005 Share Posted June 6, 2005 relative = images/image.jpg static = $ttp://www.mydomain.com/images/image.jpg If you are using a test server, even on your home pc, you can always use relative links as long as you set up your test server like the real store. I have set up my directory the same as my real store and can transfer files back and forth between the two without changing anything. Another way of using this is to add "$site_url" in front of each link you create i.e.:<img src=\"$site_url/images/image.jpg\"> $site_url is the url you set up in the settings section of your admin panel. Quote Link to comment Share on other sites More sharing options...
Guest twisted Posted June 8, 2005 Share Posted June 8, 2005 The relative link would simply be images/uploads/imagename.jpg, [or images/general, or images/logos, whereever you have the image] as viewProd.tpl would be called to the storefront, and the images directory, relative to that, is simply images/, then the subdirectory Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.