Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Re: Images on templates ?

Quote Reply
Re: Images on templates ? In reply to
I would recommend creating a GLOBAL tag for your image directory.

Like the following:

1) Create the following variable in your links.cfg file:

Code:

$build_img_dir = "$build_root_url/imgs";


2) Then add the following in the %globals hash in the site_html_templates.pl file:

Code:

img_dir => $build_img_dir


REMEMBER to add a comma at the end of the line before the LAST TAG DEFINITION in the %globals hash, like the following:

Code:

site_title => $build_site_title[/b],[/b]
img_dir => $build_img_dir


3) Then add the following tags and codes in your template files:

Code:

<img src="<%img_dir%>/something.gif" width="" height="" alt="" border="">



Good luck!

And...this is a recording...

Regards,

Eliot Lee
Subject Author Views Date
Thread Images on templates ? adriana 3416 Dec 20, 2000, 1:47 PM
Post Re: Images on templates ?
Thomas. 3304 Dec 20, 2000, 1:55 PM
Thread Re: Images on templates ?
Stealth 3321 Dec 20, 2000, 3:13 PM
Post Re: Images on templates ?
jude 3301 Dec 21, 2000, 4:06 PM
Thread Re: Images on templates ?
doororjon 3240 Jan 22, 2001, 7:37 PM
Thread Re: Images on templates ?
Stealth 3229 Jan 22, 2001, 7:44 PM
Thread Re: Images on templates ?
doororjon 3242 Jan 22, 2001, 8:31 PM
Thread Re: Images on templates ?
Stealth 3245 Jan 22, 2001, 9:34 PM
Thread Re: Images on templates ?
doororjon 3229 Jan 23, 2001, 8:30 PM
Post Re: Images on templates ?
Stealth 3251 Jan 23, 2001, 8:52 PM