Site Index Display

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
bobwill
Mega Advanced
Mega Advanced
Posts: 229
Joined: Tue Oct 01, 2002 3:03 pm
Location: Kansas
Contact:

Site Index Display

Post by bobwill »

How do I go about having the Site Index being displayed automatically, using the mm_siteIndex file? The server that I use will automatically run a "htm" file when an "404" error is encountered. That is when someone enters the wrong "url" or page. In the "htm" file I will display a message that they have entered the wrong "url" and right below that I want to display the "Site Index".
I do not want the Site Index to appear in a new window.
I hope this makes come sense.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi Bob,

How's tricks? :)

I'd suggest that you customize the 404 error page that is showing for the page not found. Put the calls for the site index on it.

Ruth
User avatar
bobwill
Mega Advanced
Mega Advanced
Posts: 229
Joined: Tue Oct 01, 2002 3:03 pm
Location: Kansas
Contact:

Post by bobwill »

So which files do I load? My menu data file and the mm_siteIndex.js file?
Then just place a direct call to the mm_siteIndex function?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi Bob,

Well, unfortunately, I can't tell you how to not open it in a new window since that seems to be part of the function setup and I don't know how to modify it. So, keeping in mind that you'll end up having to have it open in a new window unless you know how to change the function from window.open, then all you need to do is call the menu files which include the site index on the 404 page.

The other option for this would be to generate the site index page, then just copy the ul list to the 404 page. This isn't as good since it means manually doing that page any time you update the menu.

As to the window.open, perhaps you could find someone that could make that open in a named iframe instead of a new window and then you could put an iframe on the 404 page and target that???

Are you aware of the new php_sitemap in the extras folder of the menu?
I don't have any way to 'see' that since it needs php which I don't have, but maybe you might want to check that. I don't know how it works, but if you know php you could at least test it.

Sorry I couldn't be more help on this.

Ruth
User avatar
bobwill
Mega Advanced
Mega Advanced
Posts: 229
Joined: Tue Oct 01, 2002 3:03 pm
Location: Kansas
Contact:

Post by bobwill »

I am not aware of the "extras" folder. Where is it?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi Bob,

When you download the menu and unzip it to a folder it should give you the menu files plus the index page and two folders one called docs and one called extras. The extras folder has a lot 'stuff' - asp_sqlserver menu, xml menu, php menu, frames, tooltips, php sitemap, list menu

Ruth
Post Reply