I'm working on a dynamic navigation system for a relaunch of our site. I'm
trying to set it up where, based on cgi.script_name and digging out the
directory structure and/or filename in question, it builds up a menu on the
left side, inserting the correct options/links, indented properly, and the
current item highlighted.
I'm trying to puzzle out the best way to structure the data to tap into to
build these menus. I'm looking at some sort of combo of structures/arrays,
and have yet to come across a good solution. Below is a very short version
of the sort of hierarchy I'm looking at (and forgive if the spacing's off if
you're not using fixed-width fonts) -
Dirname
filename
filename
Dirname
filename
filename
filename
filename
filename
Dir
filename
filename
First "dirname" would be a dir off the root - naturally there'd be several
of these.
What I need to do is to have a page where I can build up the data in
whatever structure I end up with, with filenames/links or directory names
that I can zero in on based on parsing out the script_name variable. I'm
already set to figure out that I'm two directories deep (and pull the names
out) and what file I'm looking at within the second directory.
Any ol' suggestions would be appreciated!
--Scott
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.