Setting Index/start page?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
scottswo
Advanced
Advanced
Posts: 12
Joined: Fri Nov 21, 2003 10:21 pm

Setting Index/start page?

Post by scottswo »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Have you tried using pagematch in your aI string for the Home button or text or whatever you have? pagematch=home.asp;

Ruth
scottswo
Advanced
Advanced
Posts: 12
Joined: Fri Nov 21, 2003 10:21 pm

That's what I was looking for

Post by scottswo »

Thanks Ruth, that's what I was looking for. I just failed to notice that property before.
scottswo
Advanced
Advanced
Posts: 12
Joined: Fri Nov 21, 2003 10:21 pm

Doesn't work

Post by scottswo »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
Post Reply