Inside a CFOUTPUT tag, all CFML variables will be processed for output to the browser, and can also be used to loop a query for output of each row.
<cfoutput> ... </cfoutput>
|ATTRIBUTECOLLECTION||A structure containing the tag attributes|
|QUERY||Providing a query to this tag will allow it to act like a CFLOOP and iterate over the query for outputting its values.|
|GROUP||The column name to be used for grouping the records of a query. This attribute is only used if a 'QUERY' has been provided.|
|STARTROW||1||The first row of a query to be output. This attribute is only used if a 'QUERY' has been provided.|
|MAXROWS||-1||The maximum number of query rows to output. This attribute is only used if a 'QUERY' has been provided.|
|GROUPCASESENSITIVE||YES||If set to 'YES' then the case will be considered when grouping records of a query. This attribute is only used if the 'GROUP' attribute has been provided.|
OpenBD also has a shorthand notation for CFOUTPUT in the form of
By default this shorthand CFOUTPUT is turned off, and you will need to enable it using the cfoutputshorthand setting in your bluedragon.xml file.
Add the follow setting in the server.system block within your bluedragon.xml file.
<html> <body> <h1>My First CFML Page</h1> <ul> <cfloop index="x" from="1" to="10"> <li><%=#x#%></li> </cfloop> </ul> </body> </html>