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.
Hiding Menu Items
Re: Hiding Menu Items
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.
-
- Beginner
- Posts: 2
- Joined: Sun May 19, 2002 7:24 pm
Re: Hiding Menu Items
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.