Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Image paths in language files

Image paths in language files

Locked

Views: 933

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
12 Dec 2006, 5:03 PM
#1
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Image paths in language files

Hi, I did do a search for help with this, but couldn't find what i was after, so...

In the language files (i have created overrides), e.g. 'mytemplate/english.php' my image source (path) code looks like this:

 
// categories box text in sideboxes/categories.php
  define('BOX_HEADING_CATEGORIES', '<img src="http://www.logo-golfballs.co.uk/shop/includes/templates/future_zen/images/head-categories-left.gif" alt="Categories" vspace="4"/>');

Is there a better way of doing this?

The problem with this is that if i want to use the template again I have to go through and change all the paths (to reflect a different URL).

I am probably doing this completely wrong, so advice would be appreciated.

Also, i could then submit one of my templates as a contribution if i xould get this sorted (and a few other little tweaks)

12 Dec 2006, 5:25 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: Image paths in language files

Use the relative path instead of the Absolute path. (you should do this anyway because of issues with SSL)

Instead of http://www.MY_SITE.com/includes/images/my_image.gif

use: /includes/images/my_image.gif