I have been looking for a really really simple way of templating pages on web sites for ages. I've seen content management systems like "limbo"? etc, but they are just too complex, and I've always had a bad experience with them.
So I did find somthing that works and is as simple as I thought, and infact i've always known about SSI stuff, just never thought I could use it this way.
Basically im taking all the <head> stuff, and in the body im taking the header and footer stuff, and for all three im creating seperate html film with that global code in.
Then in the content pages, all that remains is the actual content, e.g. the text and images of the pages. At the start and end of the body, and inside the <head>, Im just using -
<?php
include ("header.html");
?>
So this adds the relevent code when the page is loaded. Very lightweight, and extremely easy if I want to, for example, add just one entry to the navigation bar.
This solution seems perfect, so easy to change, and so easy to implement.
However the question, is whether this is all good to go. I know all browsers (on windows anyway) seem to render the pages fine, but perhaps thats just luck, is there any problems with creating pages like this, is it good web practice etc?
Thanks.
So I did find somthing that works and is as simple as I thought, and infact i've always known about SSI stuff, just never thought I could use it this way.
Basically im taking all the <head> stuff, and in the body im taking the header and footer stuff, and for all three im creating seperate html film with that global code in.
Then in the content pages, all that remains is the actual content, e.g. the text and images of the pages. At the start and end of the body, and inside the <head>, Im just using -
<?php
include ("header.html");
?>
So this adds the relevent code when the page is loaded. Very lightweight, and extremely easy if I want to, for example, add just one entry to the navigation bar.
This solution seems perfect, so easy to change, and so easy to implement.
However the question, is whether this is all good to go. I know all browsers (on windows anyway) seem to render the pages fine, but perhaps thats just luck, is there any problems with creating pages like this, is it good web practice etc?
Thanks.

