Using cfinclude or cfmodule to include pages that have images?
I am at my wits end with this very simple issue.... and I cannot find an answer anywhere using Google search.
I have three files - one is called index.cfm, the other is called companies.cfm and finally one called header.cfm
The header.cfm file contains all my websites header stuff. The image paths I have used are relative so one of them is like this: <img src="images/global/companyLogo.jpg" />
If I use <cfinclude template="header.cfm"> in my index.cfm page then the image displays fine. But if I use the header.cfm file in the companies.cfm file then the image does not display. If I go to view the page source it is still looking for the image using the path "images/global/companyLogo.jpg" when really it should be "../images/global/companyLogo.jpg" to move up a level.
I just can't seem to understand how to do this so that I can use my header.cfm file on any page I want and the relative image paths within that file will resolve correctly.
Please can someone help me because I am so close to giving up and maybe trying a different server side language that can do this simple include function.
