here is one i did
save the file as CF_dirRecursive.cfm
call it from any cfm page as
<CF_dirRecursive dirPath= "#expandPath('.')#" spacer="1">
and it will recursively generate a tree (no images nor fancy text that i leave up to you)
<cfif isDefined('attributes.dirP
<cftry>
<cfset path=#expandPath(#attribut
<cfcatch>
<cfset path=#attributes.dirPath#>
</cfcatch>
</cftry>
<cfelse>
<cfset path=#expandPath(".")#>
</cfif>
<cfif not isdefined('attributes.spac
<cfset locSpacer = 1>
<cfelse>
<cfset locSpacer = #attributes.spacer# + 1>
</cfif>
<cfset strInset=' '>
<cfloop index="idx" from="1" to="#locSpacer#">
<cfset strInset = #strInset# & ' &
</cfloop>
<cfdirectory action="list" directory="#path#" name="fileList" sort="type,name">
<cfloop query="fileList">
<cfoutput>
<cfif #type# is "dir" and #name# neq "." and #name# neq "..">
#strInset#-#Name#<br>
<CF_dirRecursive dirPath= "#path#\#name#" spacer="#locSpacer#">
<cfelseif #type# eq "file">
#strInset#-#Name# - #size#<br>
</cfif>
</cfoutput>
</cfloop>
Main Topics
Browse All Topics





by: pinaldavePosted on 2004-06-30 at 07:57:48ID: 11436534
Hi theSpaceCow,
m/subcateg ories.cfm? parentid=2 00
there is custom tag available on this site.
http://www.cfcustomtags.co
I have used the paid one but the free one is also there.
Regards,
---Pinal