Andrew,

Thx but I'm still not getting what I'm looking for.

I need to include an unparsed variable in CFFILE.
I would like to do something like

<cffile
action=''
file='someFile'
output='

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

<!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.

  ----- Original Message -----
  From: mayo <[EMAIL PROTECTED]>
  Date: Wed, 15 Sep 2004 00:08:03 -0400
  Subject: cffile write question, sending but not parsing cf code
  To: CF-Talk <[EMAIL PROTECTED]>

  I'm using cffile to allow a magazine site to publish articles and not have
a
  db call everytime an article is selected. Is there anyway (aside from
  includes) that I can use send up cf code such as CGI.path_info without it
  being parsed when the cffile is being written?

  Example:

  For example /admin/createFile.cfm creates a file called
  /stories/2004-1234.cfm

  I would like CGI.path_info to display

  /stories/2004-1234.cfm not /admin/createFile.cfm

  I also would like to be able to have

  <cfset> etc... processed when the article is requested by the user and not
  when the CFFILE is executed.

  thx, hope this is understandable

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

Reply via email to