I wanted to see if anyone has any suggestions as far as best practices for menu maintenance on large sites? I deal with CSS and have used some ASP includes in the past for menus. When dealing with large sites I'm wondering if there is a better way to maintain complex menus if the client wants changes rather than going in and updating all the pages by hand. Maybe through PHP, or some other programming language. For example if my menu looks like the following below with the selected page having a class that highlights it so the user knows what page they are on. Thanks!
PHP or ASP includes so you
PHP or ASP includes so you have one file, say menu.inc, that you update once and it gets included on every page.
There is a javascript (I think) trick that will automatically add the selected class to the correct link, as well
You have sort of answered
You have sort of answered your own question in mentioning PHP. if you have that available then build your menu in PHP using an array and loop over it to produce your html links and set active classes if required that can be styled using CSS and then just require or include that file in all pags that need a menu.
A search on php menus should throw up links explaining in greater detail