bradcathey has asked for the wisdom of the Perl Monks concerning the following question:
Fellow Monasterians:
This is probably more of a fundamental question about paths than pure Perl, but bear with me.
I'm trying to move common code used by several Web sites on the same host to a common area and share it. I've got most of the paths correct, but the links in the html (HTML::Template .tmpl files) aren't working. If I were using CGI::Application it's easier for me to understand from where the instance was called and trace the paths back that way. But I'm not using it on this (too much legacy code to convert at the moment). Here's the deal:
var/www/-----+ | /admin-------+ | | | login.pl | /templates-----+ | | | admin.tmpl | | | /images-----+ | | | save_btn.gif | /domain1-----+ | | | admin -> /var/www/admin (symlink) | /domain2-----+ | | | admin -> /var/www/admin | etc.
Setup:
Problem:
/admin-------+ | | | login.pl | | | /images-----+ | | | save_btn.gif
/domain1------+ | | | /images-----+ | | | save_btn.gif
Question: where do I put those common images and what do my .tmpl image paths need to look like to share the image and still have them appear? Thanks in advance.
|
|---|