Hi Prasanth,
Indeed I had used cfdirectory tag to list the directories well before posting
this thread.
The only thing is that I can't get the cftree to display a windws-explorer
tree-like structure where I will also give the users the possibility to create
a folder etc.
Any ideas?
Thanks and regards,
Yogesh
mrgccc3 - 29 Feb 2008 00:50 GMT
Well here's one example: http://www.forta.com/blog/index.cfm?mode=entry&entry=A61BC791-3048-80A9-EF8258B9
7C3454CA
And in case you're unsure of the cftree and cftreeitem usage, you
would have to loop through all the directories and produce something
similar to this, but of course not hardcoded:
<cfset parent = expandpath("../ext2/")>
<cfdirectory directory="#parent#" action="list" name="myDir"/>
<cfdirectory directory="#expandpath("../ext2/docs/")#" action="list"
name="mydir2">
<cfdump var="#mydir#">
<cfform>
<cfoutput>
<cftree name = "ExtJs">
<cfloop query="myDir">
<cftreeitem value="#mydir.name#">
<cfloop query="myDir2">
<cftreeitem value="#mydir2.name#" parent="#mydir.name#">
</cfloop>
</cfloop>
</cftree>
</cfoutput>
</cfform>