Folks:
I've custom-built a text-only chapter-section menu in PHP (see below). It does everything I want...
But it is really quite difficult even for me to edit, add, and subtract entries. If I get run over by a truck, my successor will be very unhappy!
I want to replace my "brilliant" work with code that reads the data from an easily-edited array or external tagged-text file --NOT a database-- and it would be great to have the option to go as deep as 3 levels. A you-are-here indicator would be nice. That's all. Really. No JavaScript, please.
My implementation displays something like this in the site's left column:
Chapter 1 Name
Chapter 2 Name
Section 2.1 Name*
Section 2.2 Name*
Section 2.3 Name*
...
Chapter 3 Name
Chapter 4 Name
Chapter 5 Name
...
Probably obvious, but worth mentioning: Entries marked with '*' are links. Only one set of Sections are visible at a time. To repeat, I'm looking for easily-edited, _maintainable_ code that does this.
A little background: I'm refurbishing an existing site that is used mostly by a specialized interest group, most of whom are not technically sophisticated. There are good reasons for keeping the menu look-and-feel very simple. It's a fairly modest-sized site, so I don't expect more than 10 "chapters" and maybe 40 "sections" and possibly 20 "subsections". During development my style is to move things around quite a bit to see what organization works best -- that's the reason I'm looking for an "easily-edited" menu representation.
I've done some archive-searching and come up about 20+ candidates that do menus, all freeware or GPL or similar, but I realize I need to get on with site content, not spend a lot of time evaluating these. (I spent quite a bit of time on a promising candidate and discovered: 1. It didn't work, and 2. The design required adding a tag to target files, both deal-breakers.)
So, it would be great to hear from someone who has been through this before and can say, "I know EXACTLY, the code you want to use".
Worth a try, right?
TIA
Henry
looking for menu--navigation code
Moderator: General Moderators