Tim;

Um... okay, I think I know what the problem is. 

The header and footer files are in a different directory than the 
content
files. The client Web browser will be looking for the files based on 
the
physical location of the content files on the Web server, not based on 
the
location of the header and footer files. 

You need to think about the location of the image directory relative to 
the
location of the content pages. 

What you will need to do is adjust the links to images in the header 
and
footer files to be dynamic based on the location of the content page, 
i.e.
<img src=#request.page_level#images/thisimg.jpg">

You will need to set a variable in each one of your content pages that
refers to the location of the images directory relative to the content 
page,
i.e. <cfset request.page_level = "../">. 

You can create a new file, call it app_local.cfm or something like 
that, and
include it in each of your content pages. 

Should do the trick,
Mike

-----Original Message-----
From: Tim VanderPloeg [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 2:36 PM
To: CF-Talk
Subject: Image directory flow


I must be missing something very simple but I am new to CF. I have to
follow a directory structure hear where I work that goes like this:
Root
        Dept
                Apps
        Content
                Graphics
        Apps

What I am trying to do is to have a header.cfm and footer.cfm that will
be located in the Apps directory and the images in the Graphics
directory. All of my pages will use the header.cfm and footer.cfm no
matter what level the module is at. With the <cfinclude
template="/header.cfm"> the images do not carry over to the different
levels unless they are in the same level as the header.cfm is. In the
img src="../content/graphics/image.jpg" call I have tried it with 
just
the / at the beginning and still no luck. What do I need to do so all 
of
the images that are stored in the graphics folder and used in the
header.cfm no matter what level I include the header.cfm will be seen. 
I
only want one header.cfm, menu.cfm and footer.cfm on the site.

Tim VanderPloeg
South Florida TSG
Web Developer
561-840-7018 

______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to