Saves the generated content of the cfsavecontent tag, including the results of evaluating expressions and executing custom tags, in the specified variable.
<cfsavecontent variable = "variable name"> the content </cfsavecontent>
cfcookie, cfparam, cfregistry, cfschedule, cfset
| Attribute | Req/Opt | Default | Description |
|---|---|---|---|
| variable |
Required |
|
Name ofthe variable in which to save the generated content of the tag. |
You cannot use this tag to suppress output from a tag library.
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>
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6
Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/Tags-pt228.htm