use cf_bodycontent.  you can find it on the fusebox.org site.

<cf_bodycontent>

stuff

</cf_bodycontent>

<cffile output="#request.bodycontent" other attributes>

At 11:42 AM 4/13/01 -0400, you wrote:
>Are you building a page that will contain something like:
>
><cfset Outputinfo="
>         <HTML><HEAD><TITLE>THISPAGE</TITLE></HEAD>
>         <BODY>
>         <CFOUTPUT QUERY="this" DATASOURCE="That">SELECT * FROM
>myTable</CFOUTPUT>
>         <CFOUTPUT QUERY="this">#THIS.MyField#<BR></CFOUTPUT>
>         </BODY></HTML>">
>
><CFFILE ACTION=WRITE FILE="NewFile" OUTPUT="#OUTPUTINFO#">
>
>
>OR something like:
>
><cfset Outputinfo="
>         <HTML><HEAD><TITLE>THISPAGE</TITLE></HEAD>
>         <BODY>
>         THIS
>         DOG
>         RAN
>         FAST
></BODY></HTML>">
>
><CFFILE ACTION=WRITE FILE="NewFile" OUTPUT="#OUTPUTINFO#">
>
>-----Original Message-----
>From: Chang Liu [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 13, 2001 11:34 AM
>To: CF-Talk
>Subject: Re: CFFILE-WRITE
>
>
>sorry, i didn't make it clear.
>
>this is my tag:
><cfset
>ouputBody="<HTML>
><BODY>
>i want to put struct and array variables and cfloop here
></body>
></html>">
>
><cffile action="write" output="#ouputBody#">
>
>thanks!
>
>----- Original Message -----
>From: "Adkins, Randy" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Friday, April 13, 2001 11:13 AM
>Subject: RE: CFFILE-WRITE
>
>
> > Hopefully I am on the same sheet of what you are asking:
> >
> > Since the Output will be changing as the struct and array
> > information changes, you can place output tags as an
> > outer loop
> >
> > <cfoutput>
> > <cfloop index=1 from=1 to=#whatever#>
> > <cfset mycontent = #evaluate("employee." & whatever)#>
> > <cffile action=append file="somefilename"
> > output="#myoutput#">
> > </cfloop>
> > </cfoutput>
> >
> > Is this what you are asking for???
> >
> >
> >
> > -----Original Message-----
> > From: Chang Liu [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, April 13, 2001 11:14 AM
> > To: CF-Talk
> > Subject: CFFILE-WRITE
> >
> >
> > Hi all,
> >
> > I am using <cffile action="write" output="content">.
> >
> > I'd like to put coldfusion tags which include struct and array variables
>and
> > cfloop to the OUTPUT as content.
> >
> > anyone know how to do this?
> >
> > please help, thank you in advance!
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to