Generating dynamic navigation without MySQL
Posted: Tue Sep 20, 2005 4:18 pm
Having finally created my dynamic site generator, I'm now looking for a way to generate navigation by means of a script which does the following:
1. Looks for directories in and under a specified start directory
2. Grabs the filenames of the documents in them (which have been dynamically generated with the filename as the final name to display as a link, minus the .php extension)
3. Displays the name of the folder as a button or button-styled table cell
4. When the button is clicked, either a flyout or a breadcrumb system is revealed with the names of the pages as links
I found a nice script here: http://www.apptools.com/phptools/dynamicsitemap.php which is kind of what I'm after, but not quite.
Can anyone suggest a script resource or any known method without using MySQL (for reasons of immediate portability)??
I'm really looking for an example of something that's already been coded, so I can strip it down and learn how to construct this type of navigation myself.
Thanks in advance guys.
1. Looks for directories in and under a specified start directory
2. Grabs the filenames of the documents in them (which have been dynamically generated with the filename as the final name to display as a link, minus the .php extension)
3. Displays the name of the folder as a button or button-styled table cell
4. When the button is clicked, either a flyout or a breadcrumb system is revealed with the names of the pages as links
I found a nice script here: http://www.apptools.com/phptools/dynamicsitemap.php which is kind of what I'm after, but not quite.
Can anyone suggest a script resource or any known method without using MySQL (for reasons of immediate portability)??
I'm really looking for an example of something that's already been coded, so I can strip it down and learn how to construct this type of navigation myself.
Thanks in advance guys.