Highlighted tree option

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
Diakonos
Advanced
Advanced
Posts: 15
Joined: Thu May 23, 2002 9:00 pm

Highlighted tree option

Post by Diakonos »

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

Post by Ruth »

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: Select all

aI("text=  Projects  ;showmenu=Projects;pagematch=/churches/;");
That way the Projects should highlight whenever you are on any page in that churches folder.

Ruth
User avatar
Diakonos
Advanced
Advanced
Posts: 15
Joined: Thu May 23, 2002 9:00 pm

Post by Diakonos »

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

Post by Ruth »

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
User avatar
Diakonos
Advanced
Advanced
Posts: 15
Joined: Thu May 23, 2002 9:00 pm

Post by Diakonos »

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

Post by Ruth »

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
User avatar
Diakonos
Advanced
Advanced
Posts: 15
Joined: Thu May 23, 2002 9:00 pm

Post by Diakonos »

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?
User avatar
Diakonos
Advanced
Advanced
Posts: 15
Joined: Thu May 23, 2002 9:00 pm

Post by Diakonos »

After reading another post at 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!
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Ahh - a fix by proxy.

Glad it's working!
John
User avatar
Diakonos
Advanced
Advanced
Posts: 15
Joined: Thu May 23, 2002 9:00 pm

Post by Diakonos »

[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!
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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