User Guide
134 Developing Web Applications with ColdFusion
The built-in image names are:
• cd
• computer
• document
• element
• folder
• floppy
• fixed
• remote
Embedding URLs in a CFTREE
The HREF attribute in the CFTREEITEM tag allows you to designate tree items as links.
To use this feature in a CFTREE, you simply define the destination of the link in the
HREF attribute of CFTREEITEM.
To embed links in a CFTREE:
1. Open a new file named tree3.cfm in Studio.
2. Modify the page so that it appears as follows:
<CFFORM ACTION="submit.cfm">
<CFTREE NAME="oak"
HIGHLIGHTHREF="yes"
HEIGHT="100"
WIDTH="200"
HSPACE="100"
VSPACE="6"
HSCROLL="no"
VSCROLL="no"
BORDER="no"
DELIMITER="?">
<CFTREEITEM VALUE="Important Links">
<CFTREEITEM VALUE="Allaire Home"
PARENT="Important Links"
IMG="document"
4 HREF="http://www.allaire.com">
<CFTREEITEM VALUE="Allaire Forums"
PARENT="Important Links"
IMG="document"
4 HREF="http://forums.allaire.com">
</CFTREE>
</CFFORM>
3. Save the page and view it in your browser.