Log in

View Full Version : consistent navigational code



LeoL
08-29-2008, 01:31 PM
I really like Glossy Vertical Menu and want to use on a new website (http://preview.usps-d10.org). As I develop the site, I realize that if I need to alter the naviagion menu (glossymenu html code) I'll have to do it on every page which would be a nightmare. How can I link to a file (ex. navigation.html) that has all the naviagtional links and code which can then be placed into a page template. Then when I need to alter the navigational menu it changes throughout the site. Chose CSS Library: CSS Layouts: Two Columns & Fixed layouts for the layout.

Thank you.

Leo

ddadmin
08-29-2008, 05:24 PM
It depends on how your pages are rendered. If they are SSI enabled (ie: .shtml extension), then you can use SSI includes (http://www.javascriptkit.com/howto/ssi2.shtml) to do this. If your pages are PHP enabled (ie: .php), the equivilant would be PHP's include function (http://ca.php.net/manual/en/function.include.php), and so on.