Namaste Nat,
It's not really just an issue for cfincluding circuit apps it also applies
to any case of allowing your application to include dip files from other
directories ( like having top level header and footer files used for a
complete structure of sub circuits).
My take on it is go brute force - use absolute paths, such as:
In app_server:
Request.WebDomain = "http://www.mydomain.com"
In app_globals:
Request.AppRoot = #Request.WebDomain#/MyApp
Request.ImageRoot = #Request.AppRoot#/Template/Images
Does that work for you? If not, breath in... Ohhhmmmm...
Noam
----------
From: Nat Papovich [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, 14 December 2000 17:52
To: Fusebox
Subject: RE: the dot notation
I got no question with using directory names instead of dots, but my
real
questions lie in the situation where someone uses purely cfinclude
to call
circuit apps. Is there anyone out there that does that? If you use
cflocation to direct to circuit apps, or even cfmodule, I don't
wanna hear
about it - only cfincludes.
As for the request.images_dir - it's a great plan because it will
work
whether you have images in the circuit, or in the root images dir,
or even
on a different server like you mention, Alan.
Namaste,
Nat Papovich
Webthugs Consulting
ICQ 32676414
> -----Original Message-----
> From: McCollough, Alan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 14, 2000 7:47 AM
> To: Fusebox
> Subject: RE: the dot notation
>
>
> I've got my images stored on a separate box, and use an
> #request.images_dir#
> to refer to the actual location of these guys. Its worked
> like a champ. Fer
> example, once upon a time the box with the images had to go
> down for a day,
> so I just copied the images to a different webserver, and
> edited the value
> of request.images_dir in app_globals.cfm. Worked slick and I
> didn't even
> have to restart CF or nuthin'.
>
> As for the dot notation and what not, I tend to avoid it. I
> normally mark up
> any calls for page elements as "#request.website_dir#/{the
> subfolder}/whatever.cfm". I've found it keeps things easier
> to manage when
> I'm looking for what came from where...
>
> Alan McCollough
> Web Programmer
> Allaire Certified ColdFusion Developer
> Alaska Native Medical Center
>
> > -----Original Message-----
> > From: Nat Papovich [SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, December 13, 2000 10:25 PM
> > To: Fusebox
> > Subject: RE: the dot notation
> >
> > Well well well.
> >
> > > <cfset request.imagesroot="http://images.funkynat.com">
> > > <cfoutput>
> > > <img src="#request.imagesroot#/products/156.gif">
> > > </cfoutput>
> >
> > If I'm building the products app as a standalone, I don't
> think that I'm
> > at
> > http://images.funkynat.com/products. I think I'm a
> images.funkynat.com.
> > Requiring any given app to know where it lives in the
> "rest" of the app I
> > believe defeats the purpose of the dot notation and
> cfincluding indexes.
> > To
> > allow an index to be cfincluded willy-nilly, it cannot rely
> on anything
> > outside it's own relative self. Am I right here? Can
> someone who's built
> > one
> > of deez suckers step up and explain?
> >
> > Namaste,
> >
> > Nat Papovich
> > Webthugs Consulting
> > ICQ 32676414
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists