RE: Image directory flow

2002-03-01 Thread UXB Internet

Tim,

In you application.cfm page set a variable to the base reference and then
use it in you pages.

Example:

cfset baseRef=http://rootdomain.com/

Then when calling the graphics in your header and footer includes:

img src=#baseref#/content/graphics/image.jpg


Best regards,

Dennis Powers
UXB Internet - A Web Design and Hosting Company
tel: (203)879-2844  fax: (203)879-6254
http://www.uxbinternet.com/

-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



Re: Image directory flow

2002-03-01 Thread Joshua Tipton

Tim,

Use aboslute instead of relative paths

ie

/dept/content/graphics/imagenamejpg

This will fix the problem because the first backslash in front of dept tells it to 
drop to the root



On Fri, 01 March 2002, Tim VanderPloeg wrote:

 
 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 headercfm and footercfm that will
 be located in the Apps directory and the images in the Graphics
 directory All of my pages will use the headercfm and footercfm no
 matter what level the module is at With the cfinclude
 template=/headercfm the images do not carry over to the different
 levels unless they are in the same level as the headercfm is In the
 img src=/content/graphics/imagejpg 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
 headercfm no matter what level I include the headercfm will be seen I
 only want one headercfm, menucfm and footercfm on the site
 
 Tim VanderPloeg
 South Florida TSG
 Web Developer
 561-840-7018 
 
__
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://wwwpennyhostcom/redirectcfm?adcode=coldfusiona
FAQ: http://wwwthenetprofitscouk/coldfusion/faq
Archives: http://wwwmail-archivecom/cf-talk@houseoffusioncom/
Unsubscribe: http://wwwhouseoffusioncom/indexcfm?sidebar=lists



RE: Image directory flow

2002-03-01 Thread Haggerty, Michael A.

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