ive just signed up and this is my first post in here, so dont bare with me if im in the wrong subforum please.
I came here because i stuck in a problem that confuses me so much that im just unable to solve it on my own...
i need to create an self-building navigation from directorys, my current folder-structure looks like this:
[Main Folder] Modules:
- [Folder] Tools
- - [Subfolder] Tool One
- - - index.php
- - [Subfolder] Tool Two
- - - index.php
- [Folder] Projects
- - [Subfolder] Project One
- - - [Sub(Sub)folder] Project Tool One
- - - - index.php
- - - [Sub(Sub)folder] Project Tool Two
- - - - index.php
- - - [Sub(Sub)folder] Project Tool Three
- - - - index.php
- - [Subfolder] Project Two
- - - [Sub(Sub)folder] Project Tool
- - - - index.php
it should be possible to randomly add directorys with files anywhere inside the Modules folder and the script checks on his own whats new, where it belongs, how its named and add it to the navigation.
like:
Code: Select all
<ul>
<li>tools
<ul>
<li><a href="/index.from.path">Tool One (basicly the folders name on all examples here)</a></li>
<li><a href="/index.from.path">Tool Two</a></li>
</ul>
</li>
<li>Projects
<ul>
<li>Project One
<ul>
<li><a href="/index.from.path">Project Tool One</a></li>
<li><a href="/index.from.path">Project Tool Two</a></li>
<li><a href="/index.from.path">Project Tool Three</a></li>
</ul>
</li>
<li>Project Two
<ul>
<li><a href="/index.from.path">Project Tool</a></li>
</ul>
</li>
</ul>
</li>
</ul>
i hope some of you are able to help me here.
best thanks and greetings from germany
- sorry for my bad english :S