CFSETTING Tag - ColdFusion


>> Return to ColdFusion Tag Index

The CFSETTING tag controls a few aspects of your page processing, such as how the output of your HTML code is generated. Don't confuse this with the CFSET tag!

Syntax:
   <CFSETTING [ENABLEDCFOUTPUTONLY = "yes" or "no"]
                        [SHOWDEBUGOUTPUT = "yes" or "no"]
                        [REQUESTTIMEOUT = "value in seconds"]>

Attributes:

Attribute Description Comments
enablecfoutputonly If the value of this attribute is "Yes" it will only output stuff in between opening and closing CFOUTPUT tags. Optional
showdebugoutput The default value for this is "Yes". If the value is "Yes" and debugging is set on in the ColdFusion administration, debugging values will be outputted at the end of the page. Optional
requesttimeout Takes an integer. How many seconds that Coldfusion has to run the page before it raises a time-out error. Optional



  <CFSETTING> Comments from Adobe LiveDocsLiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-pc6.htm
enableCFOutputOnly should say Optional not Required, as you then give an example where it's not specified:
<cfsetting RequestTimeout = "#URL.RequestTimeout#">

LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-pc6.htm
<typo> The cfsetting requestTimeout attribute replaces the use of

requestTimeOut <--- add an "i"

within a URL.

LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-pc6.htm
The <cfsetting EnableCfOutputOnly="yes"> does not appear to work when used within custom tags. When I call my custom tag, all text in the tag body is output regardless of what I do with <cfsetting>

LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-pc6.htm
The initial Macromedia response may not be clear.
The end tag is allowed, but has no effect.
ColdFusion processes anything between the <cfsetting> and </cfsetting> in the same way
it processes code following the </cfsetting> tag.

LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-pc6.htm
But what's the difference in executing code inside the <CFSETTING> compared to the code outside the <CFSETTING> ? Would there really be a reason to use a </CFSETTING> ? Or were some people using it, and this was a solution to make sure it just always works?

LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-pc6.htm
In CFMX 6.1, cfsetting can have an end tag: </cfsetting> and ColdFusion executes the code between <cfsetting> and </cfsetting>.

LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-pc6.htm
What does "if the tag has a body, ColdFusion executes its contents" mean?



[Top]


Recommended Books

[Top]

Web Sites

[Top]

Copyright © 2003- 2008, Orville Paul Chomer, All Rights Reserved