Cfsavecontent - MACROMEDIA COLDFUSION MX 61-CFML Reference

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

cfsavecontent

Description
Saves the generated content of the
expressions and executing custom tags, in the specified variable.
Category
Variable manipulation tags
Syntax
<cfsavecontent
variable = "variable name">
the content
</cfsavecontent>
See also
cfcookie, cfparam, cfregistry, cfschedule,
Attributes
Attribute Req/Opt Default
variable
Required
Usage
This tag requires an end tag.
You cannot use this tag to suppress output from a tag library.
Example
The following example uses a custom tag to generate a report and saves the report in the variable
CONTENT. It replaces all instances of the word "report" with the phrase "MyCompany
Quarterly Report" and outputs the result.
<cfsavecontent variable="content">
<CF_OutputBigReport>
</cfsavecontent>
<cfoutput>
#replace(content, "report", "MyCompany Quarterly Report", "all")#
</cfoutput>
300
Chapter 2: ColdFusion Tags
tag, including the results of evaluating
cfsavecontent
cfset
Description
Name ofthe variable in which to save the generated content of the
tag.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents