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

Highlighted tree option


Poster: Diakonos
Dated: Monday October 18 2004 - 6:48:47 BST

I had been using v 5.35 and was pleasantly pleased to see how the menu auto-highlighted the currently selected "tree" from the top-most menu down to the nth level where the current page was displayed.

I just upgraded to v5.50 and noticed this "feature" is now gone. I did not update my menu_data.js, just the three code files.

Did I miss a setting to turn the feature back on?

Current link (using 5.50)
http://www.grtainc.com/churches/cathedral_of_faith.asp
Only the Cathedral of Faith menu item on the third level is highlighted.
Cathedral of Faith

Old link (using 5.35):
http://www.grtainc.com/churches/cathedral_of_faith2.asp
On this page, the Milonic menu has the following items ALL highlighted:
Projects >
Churches >
Cathedral of Faith


Poster: Ruth
Dated: Monday October 18 2004 - 8:43:51 BST

I just tested it and the function works. But, I tested it with a page. I think you need to use the pagematch parameter in the items that aren't pages and match them to a folder. For example in the first one
Code:
aI("text=  Projects  ;showmenu=Projects;pagematch=/churches/;");
That way the Projects should highlight whenever you are on any page in that churches folder.

Ruth


Poster: Diakonos
Dated: Monday October 18 2004 - 13:34:38 BST

I edited the "Projects" menu to
aI("text=  Projects  ;showmenu=Projects;pagematch=/churches/;");
but it did not seem to have an affect.

Is the highlighting of the entire tree a default behavior? I was surprised it did that on it's own (but I REALLY liked it).

I'll perform a search on the Forum to see if the pagematch parameter is the method I'm looking for...

edit: I had the version number coded incorrectly into the "Home" option. I've fixed that now so the "...faith2.asp" page uses the 5.35 menu files and the "...faith.asp" page uses 5.50.

edit#2: When I added the same pagematch parameter to the "Churches" menu option, I get the desired results for the churches folder. However, the Projects item is still not highlighted as it is by default in the 5.35 version.


Poster: Ruth
Dated: Monday October 18 2004 - 14:52:54 BST

This is something I can't really test on my desktop. Since you have 3 folders under that projects heading, I think to get a match you need to have a 'main' subfolder that has all of them in it. For example, if you had a folder called projects and then the three folders under that. Then if you put pagematch=projects/ Then I think any item that is opened in any one of those 3 folders would force the Projects item to be highlighted. You would need to keep the pagematch for churches one you have now but it would need to be projects/churches/ and so on for the items, i.e. business would be projects/business/ But, unless I create this layout on my own website I can't test it.

Ruth


Poster: Diakonos
Dated: Monday October 18 2004 - 15:19:18 BST

ok, I understand. Can you confirm that this behavior is "automatic" without having to use the "pagematch" parameter with v5.35?

Otherwise, I'll implement what you are referring to.

On a side note, were you able to view the "...faith2.asp" page to see the auto tree highlighting of all levels by itself? (http://www.grtainc.com/churches/cathedral_of_faith2.asp)


Poster: Ruth
Dated: Tuesday October 19 2004 - 2:47:30 BST

It does work, however, I have no idea if that was a deliberate programming in the menu and I don't know when it changed. In this instance it may have been the result of having the pagematch function added when there were so many requests for the ability to be able to have the menu highlight when the page was reached not through the menu, but through a link on a page in the menu.

Ruth


Poster: Diakonos
Dated: Wednesday October 20 2004 - 18:42:16 BST

Ruth,

I've taken your suggestion and moved my three project categories into a folder named "/projects" resulting in:

/projects
--/business
--/churches
--/schools

I've also created a landing page for the "Projects" main menu option (though I'd rather not have it) similar to the ones for each of the three main project type menu options. I added the necessary "pagematch" parameter to each of the menu options to ensure the parent menus are highlighted but I still cannot get the top level menu for "Projects" to be highlighted. All other menu highlighting seems to work just fine to show me which level and sub-level I'm currently on. I'm just having trouble with the TOP level. The top level DOES work when selecting the Project page directly, but not when sub pages are selected.

Any other ideas?


Poster: Diakonos
Dated: Wednesday October 20 2004 - 18:56:16 BST

After reading another post at http://www.milonic.com/forum/viewtopic.php?t=5071 from Team Member John, I see that v5.51 is now available so I picked it up and installed it on my site. Whatever it does, it fixed my problem.

Thanks!


Poster: John
Dated: Wednesday October 20 2004 - 21:53:05 BST

Ahh - a fix by proxy.

Glad it's working!


Poster: Diakonos
Dated: Wednesday October 20 2004 - 23:00:29 BST

[quote="John"]Ahh - a fix by proxy.

Glad it's working![/quote]

Heh heh. Welcome to my "party", John! Do you get karma points for solutions by proxy? LOL.

Seriously, you and Ruth and the others which answer questions are a great resource. Thanks, much!


Poster: John
Dated: Thursday October 21 2004 - 4:40:45 BST

Diakonos wrote:
Seriously, you and Ruth and the others which answer questions are a great resource. Thanks, much!

Your kind words are most appreciated. Thank you!