I am using CFFILE to create articles for a magazine publisher.

I would like to include CF code that is not processed when CFFILE is
executed.

In effect I'm looking for a tag that is something like:

#doNotProcess(CGI.path_info)#

where the CFFILE does not process CGI.path_info but in the resulting file
CGI.path_info is there and able to be used.

There are several things I would like to be able to do. One specific example
is to have a printer-friendly link

<a href="" Friendly Version</a>

Which calls the existing page and re-displays it with the new stylesheet.

<cfparam name="style" default="www">

<link href="" type="text/css" rel="stylesheet">

The resulting page should look like the code below:

========

<cfparam name="style" default="www">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Some Title</title>
<link href="" type="text/css" rel="stylesheet">
</head>

...

<a href="" Friendly Version</a>

========

Thanks,

Gil

  -----Original Message-----
  From: Andrew Dixon [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 15, 2004 2:30 AM
  To: CF-Talk
  Subject: Re: cffile write question, sending but not parsing cf code

  Not sure I have understood this right, but I assume the file you are
  trying create a CF Script, but remove the database call. In that case,
  you can put all your bits of script into a variable and than right
  that variable. The script will not be processed by CFFILE, for
  example:

  <cfset pageString = "this is some content">
  <cfset pageString = "#pageString# <cfset a = 1>">
  <cffile action="" file="/stories/2004-1234.cfm" output="#pageString">

  This will create the CF script and when called the CF parts will be
processed.

  Andrew.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to