Uh NO...The build_root_path is the ABSOLUTE path and thus the images would never show up.
If you want to use a VIRTUAL PATH, then you could use something like:
$build_image_path = "/virtual/path/to/images";
Then create a global variable in the %globals hash in the site_html_templates.pl file:
build_image_path => $build_image_path
Then in the template files, use:
<img src="<%build_image_path%>/image.gif" alt="" width="" height="" border="">
OF COURSE, the easier thing to do is create additional IMAGE variables in the links.cfg file, like the following:
$new_image = 'img src="$build_image_path/new.gif" alt="new" width="" height="" border=""';
Then create global variables in the %globals section in the site_html_templates.pl file:
new_img => $new_img
Then simply use:
<%new_img%>
GOT it?
Regards,
Eliot Lee
If you want to use a VIRTUAL PATH, then you could use something like:
Code:
$build_image_path = "/virtual/path/to/images";
Then create a global variable in the %globals hash in the site_html_templates.pl file:
Code:
build_image_path => $build_image_path
Then in the template files, use:
Code:
<img src="<%build_image_path%>/image.gif" alt="" width="" height="" border="">
OF COURSE, the easier thing to do is create additional IMAGE variables in the links.cfg file, like the following:
Code:
$new_image = 'img src="$build_image_path/new.gif" alt="new" width="" height="" border=""';
Then create global variables in the %globals section in the site_html_templates.pl file:
Code:
new_img => $new_img
Then simply use:
Code:
<%new_img%>
GOT it?
Regards,
Eliot Lee