Hiding Menu Items

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
lbowyer@hotmail.com
Beginner
Beginner
Posts: 2
Joined: Sun May 19, 2002 7:24 pm

Hiding Menu Items

Post by lbowyer@hotmail.com »

Has anyone done any work to hide certain menu items based on a value in a variable. For example, I want to hide certain menu items from certain users, depending on values passed to a particular field.

I have been able to achieve this using a simple If statement in the menu_array file, but I was wondering if anyone has encountered this before and come up with a better alternative to multiple if statements.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: Hiding Menu Items

Post by Andy »

You would want to do it in the js file i think because if you dont users could view your source and see links they are not supposed to see.
lbowyer@hotmail.com
Beginner
Beginner
Posts: 2
Joined: Sun May 19, 2002 7:24 pm

Re: Hiding Menu Items

Post by lbowyer@hotmail.com »

I was doing it in the js file, but I was wondering if there might be a better way to do this than using multiple If statements.
Post Reply