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:26

Current Location Highlight BUG


Poster: kendra
Dated: Sunday November 6 2005 - 14:48:04 GMT

I think that I have found a bug.

When you select a menu item, the menu Highlights your current location. This works good if the location matches exactly.

The problem is that sometimes the url can be pointing to the same location but be a little different.

Examples

1. Highlighting works
http://insarnia.ca/getdomain/index.php

2. Does NOT work
http://insarnia.ca/getdomain/

3. Does NOT Work
http://insarnia.ca/getdomain/index.php? ... ain=addnew

So all 3 of these examples point to the same url but only one matches exactly so its the only one highlighted.

If we get it to ignore switches added to a menu url? So

http://insarnia.ca/getdomain/index.php
and
http://insarnia.ca/getdomain/index.php? ... ain=addnew

Are still the same thus wil both highlight current menu location

Thanks
Kendra


Poster: Ruth
Dated: Monday November 7 2005 - 14:12:24 GMT

Hi Kendra,

I'm not really understanding what you mean. Those are NOT the same url. They may go to the same place but they aren't the same url. The menu program has no way of knowing that all those differently expressed urls mean the same page.

And, I'm not sure what you want? Are you saying you want all the items that go to that page, even if the url is different in each item to show the highlighting? For example

Code:
Item 1; url=http://insarnia.ca/getdomain/index.php

Item 2; url=http://insarnia.ca/getdomain/

Item 3; url=
http://insarnia.ca/getdomain/index.php?action&domain=addnew


If you want all those links from the menu items to show highlighting when one is clicked you need to use the pagematch property. Information on that can be found in the Menu Properties Quick Reference Guides, Menu Item Properties The property you want is pagematch.

If this is not what you meant could you please provide a link and point out the 3 items to test and what you want them to do?

Ruth