Chapter 1: ColdFusion Tags
folder
floppy
fixed
remote
Use commas to separate image names corresponding to tree level, for example:
IMG="folder,document"
IMG=",document
To specify your own custom image, specify the path and file extension:
IMG="../images/page1.gif"
IMGOPEN
Optional. Icon displayed with open tree item. You can specify the icon filename
using a relative path. As with IMG, you can use an image supplied with
ColdFusion.
HREF
Optional. URL to associate with the tree item or a query column for a tree that is
populated from a query. If HREF is a query column, then the HREF value is the
value populated by the query. If HREF is not recognized as a query column, it is
assumed that the HREF text is an actual HTML HREF.
When populating a CFTREE with data from a CFQUERY, HREFs can be specified in
a comma-separated list
HREF="http://dept_server,http://emp_server"
TARGET
Optional. Target attribute for HREF URL. When populating a CFTREE with data
from a CFQUERY, targets are specified in a comma-separated list:
TARGET="FRAME_BODY,_blank"
QUERY
Optional. Query name used to generate data for the tree item.
QUERYASROOT
Optional. Yes or No. Defines specified query as the root level. As in Example 1, this
option prevents having to create an additional parent CFTREEITEM.
EXPAND
Optional. Yes or No. Yes expands tree to show tree item children. No keeps tree
item collapsed. Default is Yes.
Example
<!--- This example shows the use of CFTREEITEM in a CFFORM.
The query takes a list of employees, and uses CFTREE and CFSELECT
to display the results of the query.
to show an alternate means of displaying the same data --->
In addition, CFGRID is used
229
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?
Questions and answers