|
|
 |
|
|
Pages: 1
Webpage
(Click here to view the original thread with full colors/images)
Posted by: MK
How would I set up a template or something so where the side jpg and top jpg never changed, but I could change the stuff in the middle? I've been trying to figure this out for a while...can anyone help me? Thanks.
------------------
"A Day To Dream. A Lifetime To Act."
Posted by: Canis Lupus
Hmmm, nothing to it really ... just create a single template page with no content on it, add all the bells and whistles you want for the side, top or bottom, and leave the middle part blank... Now save that page as a "template."
Now, everytime you create a page for your site, you just use that single template and add content in the middle. You can re-use the template page over and over for all the pages where you want to maintain the same type of layout.
However, if you want a template page that has easily updatable content, you can use server-side includes (SSI). This is only if your server supports them (all commercial webhosts support them).
------------------
Those who expect nothing will never be disappointed...
Posted by: MK
So I save it as a template and then the template acts as a background or what? How do I open the template, or does it just open in word or something and I can edit html in there?
------------------
"A Day To Dream. A Lifetime To Act."
Posted by: Scav
Use this in the document where you want the SSI to cut and past the template file in. When your page shows on the web this wont be there but it will be replaced with the template file you chose. It's pretty cool I just learned of it a while ago off here.
<!--#include virtual="filepath_goes_here"-->
You were asking how to edit the template file? Well just think of it as a second html page you are merging with this one. So you can edit it in notepad or wherever and you dont put stuff like head and body tags and junk, just the straight html. And once the page hits the web the server will combine the two as you have designated.
Posted by: MK
I was thinking a template is another file besides an html file, but now I know it is..thanks. Thought it would be something like .tmp or something http://www.opentechsupport.net/forums/wink.gif
------------------
"A Day To Dream. A Lifetime To Act."
|
|
|
|
|