[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?
Page 1 of 1

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

PostPosted: Fri Mar 14, 2008 4:43 pm
by deken
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

PostPosted: Fri Mar 14, 2008 7:10 pm
by deken