| Author |
Message |
guyguy50
Cat Chaser


Joined: 28 Apr 2001 Posts: 601
Location: Ludington
|
Posted:
Tue Dec 22, 2009 5:20 am Post subject: Any Good Dynamic Menu Examples |
|
Anyone out there know any good examples for dynamic menus? I have experimented with many and there are several good sources out there like http://www.dynamicdrive.com/style/ and http://www.chipchapin.com/WebTools/MenuTools/#phpdynamic. I've experimented with several of these and used them with my own versions. Just thought may be a good topic for discussion as the people in this forum are usually pretty up on the latest techniques. Personally I am working on a menu to create a menu dynamically created from folder lists using names of files and folders to create a multi-tiered drop down menu since they are for some reason not wanting to use a database. When that gets done I'll post my results and failures at it. |
_________________
Quote:I am the Great Gibby bow before me!
Quote:R.I.P. Super Snoopy (October 10, 1995 - November 1, 2008)
|
|
|
|
|
ThunderDawg
Alpha Dog


Joined: 14 Apr 2002 Posts: 17955
Location: Where Summer Spends the Winter
|
Posted:
Tue Dec 22, 2009 8:12 am Post subject: |
|
|
|
|
|
guyguy50
Cat Chaser


Joined: 28 Apr 2001 Posts: 601
Location: Ludington
|
Posted:
Tue Jan 12, 2010 5:27 am Post subject: |
|
Update on my menu creation for anyone interested.
Using this menu as my basis:
All Levels Navigational Menu- (c) Dynamic Drive DHTML code library (http://www.dynamicdrive.com). I've changed, added and manipulated the code to make it display as I wanted it to first to go along with the theme of the intranet I am working on. Very simple clean code using CSS and some minor javascript. Then using php I have gone through and ran a recursive function to go through a directory folder.
WHY?!?!? Well let me explain
Not being able to have a database on this project... I begged... but they did not want it so I said ok this shall be a fun project. Goal was to create a system where the administrator could drop files that would frequently be updated. PDFs .DOCs etc.... Well so created a standard dynamic PHP styled page. Then created the folder listing system to work with it.
Found a cool example of recursively going through every folder at: www.bin-co.com/php/scripts/filesystem/ls/ Loved it so much that I used it as the backbone of my function. I stripped down the output and made it output the folder list into multi-dimensional arrays to store things like folder_array[1] -> Documents [2] -> Paint Dept [0]-> index.php.
where the directory for that specific listing would be documents/Paint Dept/index.php. Now once index.php is found it would stop the recursive function from looking further into folders... then move on. These arrays stored what would then be used in the menu.
The Menu would then be a multi-dimensional list menu (see example at dynamicdrive.com I listed above) that would say the folder_array would populate the first level of the menu then the extra levels would be filled with something like this.... Documents with sub-levels of -> Paint Dept / -> Weld Dept / -> Maintainace.... and so on and so forth.
I have this mid way done and if any interest or comments of this is requested I'm considering giving the code out if some one with a talent for writing could make a useful tutorial from it.
This challenge has granted me an opportunity to deal with what a client directly wanted limiting the easy route, but granting me cool ideas I can use on later projects. |
_________________
Quote:I am the Great Gibby bow before me!
Quote:R.I.P. Super Snoopy (October 10, 1995 - November 1, 2008)
|
|
|
|
|
|
|