Click to See Complete Forum and Search --> : Server Side Include Question (or something along those lines)


duderdude2
03-12-2005, 03:10 PM
On my webpage, I'm using server side includes so I can easily modify content across all my pages.

However, I was wondering if there were a way to use one SSI (or something similar) to cover all aspects of a page, instead of having to use multiple for each segment.

For instance, currently I have seperate includes for the "header" and "footer." Is there a way to combine both into one document? There'd have to be a way, of course, for each individual webpage's content to be inserted inbetween the "header" and "footer" portions of the SSI though.

Can this be done, in some way or another?

PeOfEo
03-12-2005, 06:42 PM
Yes. You can do one include to include it all. But it would require you to use css for layout. If you use css you can just put your include at the top or bottom and include all of your structure like that and then use the css to move it around appropriatly.