If statement

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:

If statement

Post by Maz »

I'm not very good at php and js, instead of going through php (like login), can I have an if statement to show menu item if a div style is present in the content as a simple workaround?

If I can do that what would it look like?

Thanks
maz
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

I just realized these pages need pagematch if I want them highlighted in the menu.

Can I do an, if pagematch include with(milonic=new menuname("rate")){
?

Now I don't understand pagematch, because it doesn't match an item on the menu. The menu says type=1 but the selection takes you to id=*

url=/type/type=1;pagematch=includes /type/id=*;

then it would go something like, if pagematch includes show with(milonic

Does this make any sense?

Maybe Kevin knows what I'm talking about?

Thanks,
maz
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

maz wrote:...Maybe Kevin knows what I'm talking about?...
I'm afraid I don't follow... :? Sorry. We'll get there though.

Kevin
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Thanks Kevin,

I decided not to go there and take an easy way out.

maz
Post Reply