Setting up directory structures
Posted on 2001-06-15
Well, heres an easy question (i think).
Um.. it's all a bit of a mess really now..
1)I have a file called global_variables.cfm in www.mysite.com/includes/
this file is linked to from my application.cfm file found in the root of the website.
it contains these lines:
2)my main page is made up of 4 include files, inc_1pageheader.cfm, inc_2globalqueries.cfm etc...
these include files are in the www.mysite.com/includes/ folder also.
the includes display the main navigation, with images and stylesheets.
here is the example from an include:
<link rel="stylesheet" href="#application.images#stylesheet.css">
<LINK rel="SHORTCUT ICON" href="#application.images#favicon.ico">
3)I have a file called index.cfm which is in www.mysite.com/ (the root dir)
this uses <cfinclude> to compile up the page design, and also displays the main "news" scrren on my page
4)all the images for the site are in : www.mysite.com/navigation
OKAY, now the page compiles fine, and it finds all the include pages fine. except it can't find the images. however
there is one exception to this. it manages to find this image found on the inc_4restofpage.cfm:
<img src="#application.images#/icon-bullet.gif" width="9" height="9">
But NOT this one:
<img src="#application.images#/1x1.gif" width="100" height="15">
and it's not picking up the above stylesheet either.
It's confusing me.. as this should be EASY!