[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
www.dhtmlgoodies.com • View topic - Disable Menu item from <ul><li> list?
Advertisement

Disable Menu item from <ul><li> list?

Moderators: Calcifer, slothy

Disable Menu item from <ul><li> list?

Postby deken » Fri Mar 14, 2008 4:43 pm

I'm certain this has been asked, and I apologize for the repeat if it has - I can't find the answer despite having looked and searched every way I can think of.

I'm building a menu on the server-side from information in a database. I'd like to be able to selectively disable (or, possibly, merely hide) menu items based on the logged-in user's permission level. I can add any attribute to any part of the HTML code from which the menu is built but don't know which attribute to add to which portion of the <ul><li> list.

I could build the necessary javascript on the server to be run on the client but that seems needlessly complex.

Is there an attribute I can use to disable a menu item as I've described?

TIA

Deken
deken
 
Posts: 2
Joined: Fri Mar 14, 2008 4:32 pm

Postby deken » Fri Mar 14, 2008 7:10 pm

deken
 
Posts: 2
Joined: Fri Mar 14, 2008 4:32 pm


Return to Menu script questions

Who is online

Users browsing this forum: No registered users and 2 guests

cron