Month: July 2011

PHP Menus are Too Easy…At Last!

PHP Menus are Too Easy…At Last!

Finally, finally, I got the PHP thing figured out for menus. I’ve really been in love with the idea of a single external menu file that I can edit, add, or generally “decorate” without having to change 3,056 pages as well. Sigh…the php menu…lust, desire, covet… Well, with the help of my SMEs, we got it figured out. And it was incredibly simple. It makes me wonder about the guy last fall with whom I corresponded for weeks as he attempted to “help me” implement his easy method for creating this easy menu. Starting the PHP Menu Process The Menu Cut-and-paste your entire menu into a new file saving it with a PHP extension—menu.php. In the <head>, be sure to include the links to any external stylesheets such as the primary stylesheet that sets out the declarations for the menu! If you have separate stylesheets for the actual dropdown menu, include those as well. Be sure to hard code the full address for your stylesheets in your new menu file! Include any menu hacks for Internet Explorer, etc. and the external links for any JavaScript, etc. The HTML Page In each web page that will use this menu, type in […]

Posted July 14, 2011 by Kathy Davie in / 0 Comments