Posts: 8,445
Name: Steven Bradley
Location: Boulder, Colorado
|
What you want to do is use a scripting language like php or asp. I use php and when I build a site I develop one page first as well as I can and then pull out all the code that will be common across all pages into separate files.
For example since the navigation will be the same across the site I'll take all of that code and place it in a file called menu.inc and then add the code like
<?php include "menu.inc" ?>
in the place on the original html page where the menu code used to be. The original html page will need to have the .php extension.
Similiarly for the footer and header code or any other code you only want to update once. Generally you can pull out all of the code into 2 or 3 files that's going to repeat across pages.
You will need to update every page of your site to do this now, but it will prbably be easier now than before the site gets even larger. Do you know a scripting language? It's probably a good idea to learn one before attempting this, but what I'm suggesting is pretty basic. It really is just that one line of php.
|