I modified that code that was posted earlier so it will output to a file in this format
.About
..Category 1
...sub category 1.1
....item 1.1.1
....item 1.1.2
...item 1.2
...item 1.3
..category 2
...item 2.1
...item 2.2
...sub category 2.3
....item 2.3.1
....item 2.3.2
.Download
.Email me
I then use PHP treemenu to make a nice little callapsable menu that is created on the fly, but on my php3 host its all outa order. do you have any ideas how i could code it for sorting? I know the logic behind it, I just can't seem to get the right combination.
I could use the same var. that creates the dots use that like, sort all items with 2 dots.. or 3 dots and so forth. I've tried a few things and I think I just need a little push. I've been looking at the same code over and over and I obviously can't see what i'm missing.
The dots are added with a little for loop, for ($a=0;$a < $level;$a++) $var = ".".$var;
so far it hadn't been this bad to create, just this sorting is kicking my butt.
http://www.lynchburgnephrology.com/betaindex.php?smenu=Articles&pmenu=NHHD&header=Articles&tmenu=Left
the link above is a working demo, besides the spacing issue cuz the names of the folders are huge it works fairly well. Stil gotta figure out somethings on the layout of the site .. 🙂 im not pleased with it.