Milonic Menu Highlighting on Page...

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
tepidarium
Mega User
Mega User
Posts: 169
Joined: Sun Oct 05, 2003 4:21 am

Milonic Menu Highlighting on Page...

Post by tepidarium »

Hi,

I have a question about how the menu highlights menu items...

on the following page - the main "Academics" state is highlighted as well as proper substates...
http://www.citytech.cuny.edu/academics/ ... index.html

BUT on this page which is a subset of the other page the menu highlighting is not present...
http://www.citytech.cuny.edu/academics/ ... grams.html
is there a way fix this.

Thank you!
tepidarium
Mega User
Mega User
Posts: 169
Joined: Sun Oct 05, 2003 4:21 am

Post by tepidarium »

I think I understand why the page doesn't highlight -i.e. becuase those specific pages are not listed in the menu_data.js (nor would I want them to be as they are too far down in the heirarchy) still - even though the pages are not listed in the menu_data.js it would be nice if the menu highlighting stayed on to illustrate where in the hierarchy the user is...is this impossible?
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hey,

I'd suggest reading the description of the pagematch propety in the menu item properties quick ref. Is that what you're after?

Kevin
tepidarium
Mega User
Mega User
Posts: 169
Joined: Sun Oct 05, 2003 4:21 am

Post by tepidarium »

Hi Kevin...
Yes this was it...I should have checked the properties list but didn't even imagine there was an option for this:-)

The only thing I can't figure out is how to get the main index.html file on the base url

http://www.citytech.cuny.edu to be recognized and have the "Home" menu option highlighted. In the main menu in the html code, I set the following pagematch option:

Code: Select all

aI("text=Home;url=http://www.citytech.cuny.edu;status=Home;itemheight=18;itemwidth=83;align=center;pagematch=/index.html;"); 
} 
This will work and light up "home" when the page the user inputs is:

http://www.citytech.cuny.edu/index.html

but won't work if the user simply goes to

http://www.citytech.cuny.edu

I don't want to put in a pagematch "/" because then "Home" will be illuminated on every page...
tepidarium
Mega User
Mega User
Posts: 169
Joined: Sun Oct 05, 2003 4:21 am

Post by tepidarium »

I decided to just define "offbgcolor" on the index.html page of the site as I couldn't figure out another way to do it...seems to work ok...
Post Reply