Posting the menu contents in one page?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
kelemvor
Super Advanced
Super Advanced
Posts: 39
Joined: Mon Jun 17, 2002 2:05 am

Posting the menu contents in one page?

Post by kelemvor »

I am in need of creating a "SiteMap" of our website that follows the menu structure I have created. Is there any way to do this via the Menu itself? Basically putting everyone on one page with all the menu optoins and sub optiosn arrange just as they would look if you expanded every option on the menu at once?

Something like:

Code: Select all

Menu1
Menu2
    Menu2a
    Menu2b
Menu3
Menu4
    Menu4a
    Menu4b
        Menu4b1
        Menu4b2
Menu5
etc...
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

I'm not aware of any menu option that will do this for you. However, looks like you've got a pretty good start on it... :)
John
kelemvor
Super Advanced
Super Advanced
Posts: 39
Joined: Mon Jun 17, 2002 2:05 am

Post by kelemvor »

Yeah it's something I could do by hand, but then I have to update it every time I make a change to the menu. I'm looking for something that when a person goes to the "Site Map" page, it would read in the menu and write it out as in my example based on the current data in the menu_data file.

We rearrange things so often it's very tedius to have to manually go update our one page all the time. I'd be really cool if the Milonic menu could do it automatically.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Kevin might come up with a JS to handle it. Stay tuned...
John
kelemvor
Super Advanced
Super Advanced
Posts: 39
Joined: Mon Jun 17, 2002 2:05 am

Post by kelemvor »

If someone can create this, that'd be great. I'll have to just write it up by hand now since I don't know how to create somethign like this on my own. heh heh.

But I'll stay tuned...
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Post by Martin »

An other idea might be in using php. With php you could parse your menu-file, extract the data and output the data in anchor tags.

It's not a good idea to use the dhtml-menu for a sitemap. Spiders and Search engines can not read js.
cheers

====================================
Merlin Consulting
Martin Schaible
Bahnhofstrasse 27
CH-8702 Zollikon
====================================
NineNine
Beginner
Beginner
Posts: 7
Joined: Sun Feb 01, 2004 4:52 pm

Almost done...

Post by NineNine »

I was looking for an option to do this also, and I haven't found one, so I'm writing my own for my ASP based site. I'm almost done... If anyone's interested in an ASP solution, please let me know via this forum.
kelemvor
Super Advanced
Super Advanced
Posts: 39
Joined: Mon Jun 17, 2002 2:05 am

Post by kelemvor »

If it will be able to go through the actual Menu_Data file (or whatever it's called) and pull out the data and create a Site Map type thing, then I'm definitely interested. Would like to see a sample when you get it working.
NineNine
Beginner
Beginner
Posts: 7
Joined: Sun Feb 01, 2004 4:52 pm

Post by NineNine »

Actually, I started working on it, and I decided that for speed for my particular website, it's gonna have to be a VB based app that dumps the structure into a database table, (the app will be scheduled to run daily)then the site map will build from that via ASP. I realized that I need the structure in a database for one of my outgoing data feeds. So, I'll be able to post the two, but it probably won't be useful for too many people other than myself, unless somebody wants to rip out the underlying logic that parses the menu_data.js file and re-do their own app.
Post Reply