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:14
Setting Index/start page?
Poster: scottswo
Dated: Monday February 13 2006 - 20:56:46 GMT
Is there a way to let the menu know what page name is for the default page of the website? On all of my sites, I use home.asp as the main page, which the user gets if they just go to URL. However, Milonic does not use the pagecolor or pagebgcolor settings in the menu for that page if they just come to website via the base URL without the page name.
Poster: Ruth
Dated: Tuesday February 14 2006 - 4:41:53 GMT
Have you tried using pagematch in your aI string for the Home button or text or whatever you have? pagematch=home.asp;
Ruth
That's what I was looking for
Poster: scottswo
Dated: Tuesday February 14 2006 - 15:01:11 GMT
Thanks Ruth, that's what I was looking for. I just failed to notice that property before.
Doesn't work
Poster: scottswo
Dated: Tuesday February 14 2006 - 15:18:40 GMT
Hi Ruth,
This does not work for what I am wanting to do. It seems that in order for the pagematch feature to work, a file name actually has to be called in the URL. The problem is that when a user first goes to a website, there is no file name in URL, ie. http://www.yahoo.com.
What I want to be able to do is have the home page (or index page) show as selected when someone first goes to the website by simply typing in the URL, with no file name. The pagematch does not work because the milonic menu is reading the URL to get the actual file name being called, which obviously in this case does not exist.
Poster: Ruth
Dated: Tuesday February 14 2006 - 15:56:02 GMT
Hi,
I don't think you'll be able to do that since there's no page there, and if you use pagematch=www.whatever with no page, then when they click on a link to it that has a page, it won't match.
I can suggest guaranteed way of doing it, but it does involve having two menu_data.js files. You'd make one for the main page, which had the offbgcolor set to the same color as the pagebgcolor that you are using for all the page highlighting in your now existing menu_data.js file, then on that main page only you'd call that data file. Not elegant, but it would work no matter how the person got to that page since it's actually the offbgcolor that is showing.
I'll try some experimenting and see what else I can figure out, if anything.
Ruth