Forum Moderators: phranque
Lets say you have a navigation bar on the left side of every page and another navigation bar on the bottom of every page. Normally you would use Server Side Includes for each one. But say you didn't want to use SSI so that way you can free up server resources.
Currently I'm using Dreamweaver and I know I can use Dreamweaver's Libraries to achieve this but then I'll have to upload all 1000 pages everytime I make a little change to one of the libraries.
How do some of you do it?
Recursive Find and Replace
info here [unimelb.edu.au]
I use document.write to create text navigation links or even drop-downs as a function in the external js file. The web pages themselves just call the function, so they never change. To update the links or add a seasonal message, I just modify the js file once and that's it.
Note that there are disadvantages to doing this, notably a loss of traffic due to some having javascript turned off AND spiders do not follow js links.
<added>
This method also lets you navigate multiple domains or even servers.
I've thought about using external js files to do the navigation but I don't want to lose traffic and have big sections of my website blank because someone has it turned off.
So I guess all static websites out there use SSI?