Welcome to WebmasterWorld Guest from 188.8.131.52
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?
Don't know of anything you can do across multiple files server-side. (Not sure I would want to try that, anyway.)
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.
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?
Apparently many of them are. I'm planning on switching to it myself over the next year or so because of the SEO benefits.
Some sites are using scripts to build static pages from a database and templates.