cfsetting

Controls aspects of page processing, such as the output of content outside cfoutput tags.

 <cfsetting enablecfoutputonly=true|false>

 setting enablecfoutputonly=true|false;

Attribute Reference for the cfsetting tag

enablecfoutputonly

Required: No
Default: false
true: Blocks output of content that is outside cfoutput tags.
false: Displays content that is outside cfoutput tags.

showdebugoutput

Required: No
Default: true
true: If debugging is enabled in the Administrator, displays
debugging information
false: suppresses debugging information that would otherwise
display at end of generated page.

requesttimeout

Required: No
Integer; number of seconds. Time limit, after which
CFML processes the page as an unresponsive thread.
Overrides the timeout set in the CFML Administrator.

Compatibility

ColdFusion:

CF10: Added the script syntax: setting.

Examples sample code using the cfsetting tag


Script Syntax

Enable cfoutput only

setting enablecfoutputonly=true;

Script Syntax

Disables debug output

setting showdebugoutput=false;

Script Syntax

Set the request timeout to 30 seconds

setting requesttimeout=30;

Tag Syntax

Enable cfoutput only

<cfsetting enablecfoutputonly="true">
Foo <cfoutput>bar</cfoutput>

Expected Result: bar


Tag Syntax

Disables debug output

<cfsetting showdebugoutput="false">

Tag Syntax

Set the request timeout to 30 seconds

<cfsetting requesttimeout="30">

Fork me on GitHub