I'm trying to create a tree structure, i'm using coldfusion 5 on a unix box. I'm forbidden to use CFTREE and parent child relationships. all i have is a pathname column that i have to parse out to create a hierarchical visual representation of a directory structure. I'm having a really difficult time trying to figure out how i'm going to accomplish this.
Also in this table there is no concept of folder, meaning a folder exist only if a document exist :(
the records can look like this
doc_id path_name file_name
1 test1/test1.1 file1.pdf
2 test1/test1.2 file2.pdf
3 test2/ file3.pdf
4 test2/test2.1 file4.pdf
5 test2/test2.1/test2.1.1/ file5.pdf
ps. i've found several wonderful examples on alternatives to cftree. but nothing so far that parses a pathname.
Thank you,
Metzy
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

