Okay, figured it out.

Both <cffile> and <cfinclude> will work.

With <cffile> you need to output the <cffile> variable, as opposed to
letting <cffile> display it directly.

With <cfinclude> the pathing is screwy. I used a bunch of
"up-directories" (../) to get all the way to the root of the server
drive, and then used absolute pathing to get back down to the file I
wanted:

<cfinclude
template="../../../../../../../../../../../websites/mysite/404.cfm">


Hope it helps someone.
Jamie 

On Fri, 30 Nov 2001 17:39:01 -0500, in cf-talk you wrote:

>I've found that HTTP redirects and <cflocation>s function properly,
>but they don't quite have the behavior I need within my custom CF 404
>page.
>
>So, I'm still wondering about <cfinclude>s within my "Missing Template
>Handler" page.
>
>Possible, or no? Is there anything special I need to do with the
><cfinclude> to make it work?
>
>Thanks,
>Jamie
>
>On Fri, 30 Nov 2001 13:55:47 -0500, in cf-talk you wrote:
>
>>I'm trying to set up a custom 404 template that can (individually)
>>handle multiple sites' (CF) 404 errors (they are hosted on the same
>>server).
>>
>>I'm having trouble with <cfinclude>s and <cffile>s within the custom
>>CF 404 template: I can't get them to work.
>>
>>Are these disabled to prevent endless 404 error loops? If not, what
>>might I be doing wrong?
>>
>>Thanks,
>>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
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