I am starting to experiment with cftree. I can’t seem to get the file to 
display when I click on the link. I think it is a server setting. Please Help.

<cfset rootDir = "Y:\Repository\intranet">
<cfdirectory action="list" directory="#rootDir#" recurse="yes" name="myDir">
<cfform>
<cftree name = "myDirTree"
format="flash"
height = "300" width = "500" 
hScroll = "yes" 
vScroll = "yes" 
enabled = "yes" 
visible = "yes">
<cfloop query="myDir">
<cfswitch expression="#myDir.Type#">
<cfcase value="Dir">
<cfset img = "folder">
</cfcase>
<cfcase value="File">
<cfset img = "document">
</cfcase>
</cfswitch>
<cfset wholePath = myDir.Directory & "\" & myDir.Name>
<cfset treeVal =Right(wholePath,len(wholePath) - len(rootDir))>
<cfset parVal = ListDeleteAt(treeVal,ListLen(treeVal,"\"),"\")>
<cftreeitem value = "#treeVal#" display="#myDir.Name#"
parent = "#parVal#" expand="false" img="#img#"
href="#wholePath#" target="blank">
</cfloop>
</cftree>
</cfform>

Thank you, 
Keith

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262445
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to