Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:36

Site Index Display


Poster: bobwill
Dated: Saturday April 28 2007 - 14:02:32 BST

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.


Poster: Ruth
Dated: Sunday April 29 2007 - 1:29:07 BST

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


Poster: bobwill
Dated: Sunday April 29 2007 - 15:37:42 BST

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?


Poster: Ruth
Dated: Sunday April 29 2007 - 17:21:15 BST

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


Poster: bobwill
Dated: Monday April 30 2007 - 16:46:58 BST

I am not aware of the "extras" folder. Where is it?


Poster: Ruth
Dated: Monday April 30 2007 - 19:56:22 BST

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