Tree Menu


Posted on 16th Feb 2014 07:03 pm by admin

Hi guys,

Can anyone help me making a tree navigation system? I have a site where I'm allowing users to upload their files to share with each other. They can create folders, but I'm having real trouble working out how to give the folders 'depth', i.e. folder within a folder within a folder...

Did you know?Explore Trending and Topic pages for more stories like this.
If I could print out an xml file of the folder structure, that would be amazing, but I have no idea how to go about it. All the folders are stored within a database (with info such as their names, permissions, owners etc), as well as being physically stored on my hard disk (this is all just local at the moment).

If I can make an xml file then I can just use a Flex tree component and save myself a lot of time. If anyone has any other ideas or techniques I'd love to hear about them. Also, at present all the folders are actually stored side by side with each other, its the database that tells them how deep they are, but when I get this tree system up and running i think I'll be in a much better place to sort that out.

Thank you
No comments posted yet

Your Answer:

Login to answer
90 Like 42 Dislike
Previous forums Next forums
Other forums

Will an XHTML DOCTYPE interfere with my PHP if I'm not experienced enough?
I've read this article here: http://friendlybit.com/html/why-xhtml-is-a-bad-idea/

In a nutshe

Links not updating
I'm trying to fuel a simple navigation system for a news section. It works fine when it comes to ret

Comma seperated implode & modifying returned string.
I have a PHP post form that posts up to 4 variables. I need whatever variables are passed to be comb

Accessing element of object array
Hello

My object looks like this:


Array ( [0] => User Object ( [id] =>

Is there a more efficient way to code this than what I have?
I have three associative arrays.

$combinedSettings
$userSettings
$defaultSettings

Help uploading .JPG
I have a problem with upload images when the ending is .JPG capitalized.. I really don't know what c

RSS poster script?
I have found a script that posts RSS's for me on a site that I'm building. However I would like to a

PHP arrays into arrays need help
Hello
I am trying to highlight the days on my calendar based on the dates that i have in my datab

Help If user voted, block them
On my Prayer request site, i let users Click a button to Pray for somone that has posted a pray, i g

Turning Data into URLs?
This may seem very basic to you, but I'm having a hard time figuring out how to do this since I don'

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash