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

pagematch not working w/tertiary navigation


Poster: vickybarone
Dated: Thursday October 21 2004 - 0:23:55 BST

I've implemented the menu in a site that has 3 levels of navigation. I've created a directory structure to mirror the navigation structure so I can use the pagematch to highlight the primary and secondary navigation pages accordingly - it works for the primary and secondary nav - but not the tertiary nav -

here's the example site:
http://www.alittlemoxie.com/dsourcevamain/index.asp

Go to: Education->Diamond Industry
(you'll notice the "Education" and "Diamond Industry" highlighted)
However, within that page, there are tertiary nav categories (Diamond History, etc) If you go one level deeper to the Diamond History page, the "Diamond Industry" doesn't stay highlighted.

I'm using the same method for this nav as I did for the other nav levels - for example:

Education men item:
aI("text=Education;url=http://www.alittlemoxie.com/dsourcevamain/Education/diamond-shape.asp;showmenu=Education;status=Education;pagematch=/Education/");

Diamond Industry menu item:
aI("text=Diamond Industry;url=http://www.alittlemoxie.com/dsourcevamain/Education/diamonds-diamond-industry.asp;status=Diamond Industry;pagematch=/DiamondIndustry/");

Since the Diamond History page is within the "DiamondIndustry" folder, shouldn't it stay highlighted?

I thought you could use a portion of the URL to check for a "match"
Anyone have any ideas what I'm doing wrong?

I appreciate any input. Thanks!

Vicky


Poster: Ruth
Dated: Thursday October 21 2004 - 3:08:04 BST

I think you left out a folder in the match. I think you need
Code:
pagematch=/Education/DiamondIndustry/

But, I don't know for sure since I can't test that on the desktop.

Ruth


Poster: vickybarone
Dated: Thursday October 21 2004 - 12:44:36 BST

Hi Ruth,
I've tried that as well - and it's still wasn't working -
(I should have mentioned that in my post)

I've changed the menus to to include "/Education/" as the folder before just to see if it would work on the internet and not my desktop...
but it doesn't..


Any other ideas?


Poster: Ruth
Dated: Thursday October 21 2004 - 14:48:24 BST

I am not one to ask about paths, if they aren't something you walk on in a garden, I end up getting lost!

Do you have to have the first folder under the root listed? devsourcevamain?

Ruth


Poster: Maz
Dated: Thursday October 21 2004 - 18:18:14 BST

I don't see where you have a path to DiamondIndustry.

http://www.alittlemoxie.com/dsourcevama ... ustry.asp;

Did you try taking off pagematch?

It looks like you want: diamonds-diamond-industry.asp

would a partial match work if you used just: diamond?

Sorry if I'm not much help.

maz


Poster: vickybarone
Dated: Thursday October 21 2004 - 18:50:30 BST

Well, I want to use partial matching b/c I want the "Diamond Industry" to be highlighted when you go to any page one level deeper (the tertiary nav that's part of the page above the text - History of Diamonds,etc...

It's when I go to those pages which reside in this folder:
http://www.alittlemoxie.com/dsourcevama ... dIndustry/

that I wan the "Diamond Industry" to be highlighted in the secondary nav (along the site)

I didn't include the folder above these "dsourcevamain" b/c this site is only temporarily posted and will eventually reside on it's own domain - and the other page matches are working without it...

Anyone have any other suggestions?
It seems like it should be so straight-forward - I feel like I'm missing something obvious...


Poster: Maz
Dated: Friday October 22 2004 - 4:21:40 BST

I see diamond industry highlighted but don't see any DiamondIndustry in the url.

I don't get it :|

maz


Poster: Ruth
Dated: Friday October 22 2004 - 6:31:09 BST

Hi Vicky,
This does work. I set up a test 'site' . The error is somewhere in the paths, either in a disagreement between the ,horizontal and vertical menus and the pagematching setups

Hope this helps.

Ruth


Poster: vickybarone
Dated: Friday October 22 2004 - 13:01:54 BST

Hi Ruth!
Thank you SO much for putting together the example you did!!!!
I just looked at it - and your files - and realize why my menus aren't working how I want them to -

You actually have the Diamonds Industry page inside the Diamond Industry folder - Since my folder structure mirrored my nav structure, and the Diamonds Industry page is only the second level of nav, it was in the /Education/ folder - not the /Education/DiamondIndustry/ folder - where all the subpages were -

It seems in order to use pagematch, the file has to reside in the folder you're trying to match - for example:

this won't work:
aI("text=Diamond Industry;url=http://www.alittlemoxie.com/dsourcevamain/Education/diamonds-diamond-industry.asp;status=Diamond Industry;pagematch=/Education/DiamondIndustry/");

But this will work:
aI("text=Diamond Industry;url=http://www.alittlemoxie.com/dsourcevamain/Education/DiamondIndustry/diamonds-diamond-industry.asp;status=Diamond Industry;pagematch=/Education/DiamondIndustry/");


I knew I was over-looking something -

Thanks so much for your help!!

Vicky


Poster: Ruth
Dated: Friday October 22 2004 - 13:31:53 BST

You're welcome. I'll assume you have what you need and remove the pages from my site.

Ruth


Poster: vickybarone
Dated: Friday October 22 2004 - 13:47:34 BST

Yup. I have what I need. Thanks again for all of your help!