The href attribute in the cftreeitem tag lets you designate tree items as links. To use this feature in a cftree control, you define the destination of the link in the href attribute of the cftreeitem tag. The URL for the link can be a relative URL or an absolute URL, as in the following examples.
Embed links in a cftree control
The following table describes the highlighted code and its function:
Code |
Description |
---|---|
href="http://www.adobe.com"> |
Makes the node of the tree a link. |
href="http://www. adobe.com/devnet/mx/coldfusion/"> |
Makes the node of the tree a link. Although this example does not show it, the href attribute can refer to the name of a column in a query if that query populates the tree item. |