Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Header Page images dont Work 1

Status
Not open for further replies.

countdrak

Programmer
Jun 20, 2003
358
US
So I have a header file called header.cfm in my root.Here is what is going on. I want to use this header file in all my web pages. So I have C:/header.cfm. I have another directory called Solutions. Suppose C:/Solutions/index.cfm. I have a directory called images on C:/ and in Solutions directory too. In my index.cfm in the Solutions directory I call header.cfm

So when I do <cfinclude template="../header.cfm"> the header file looks for the images in the images directory in my Solutions directory. I dont know how to get around it!

For example

C:/Header.cfm--> <td width="115" valign="top"><img src="images/buttonPar.gif" width="115"></td>

C:/Solutions/index.cfm--> <cfinclude= "../header.cfm">

buttonPar.gif is in C:/images/ not in C:/Solutions/images

How do I get around it?
Please help...thanks
 
I don't suppose coldfusion is any different but paths are relative to the file using the include NOT to the included file.



Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
Could you elaborate...

Like I said I want my header.cfm in Solutions/index.cfm to get the images from ROOT>images and not go to ROOT>SOLUTIONS>IMAGES like its doing now.

 
then

<img src="[red]/[/red]images/buttonPar.gif" width="115">

to use the root folder not the current folder



Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top