Display menu matching url id wild card

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Display menu matching url id wild card

Post by Maz »

Hey Guys and Gals I have a url match question.

I have an if statement for when the menu should display, if not then I get everything else. I want to change that to all articles.

I'll probably need a new if statement to match a wild card id for article so it doesn't display "category_id=1"

Something like:

if (location.pathname == "http://www.mercuryexposure.org/index.php?article_id=*"){

What do I use here * as a wild card?

Thank you,
maz
Post Reply