View Full Version : header/template type thing? i think this is hard?!


jamingben
07-08-2003, 06:03 PM
Ok, what i am trying to explain is quite hard so please bear with me.

It is very common for pages to have headers, which is a great idea, but the problem is that often the header can take up so much space that there is not much browser space left for the actual page.

I guess the was round this is to have a title bar, like a header, at the top of every page, but as a part of the page, so it dissapears when you scroll down. The problem with this is that if you want to change the title bar you have to change every page, which could take a long time.

I have seen some pages like this (www.goodbyeaudio.com, and in a way www.google.com). I am guessing that they are working with some kind of basic template, and then using a program which allows them to simply alter the template page, and all the pages will be changed accordingly.

Am I right? If so what kind of program is this? If not then is there an easy way of achiving this (easier than editing loads of pages individually).

I hope this makes sense. Thanks in advance for your help.

Ben

Dude128
07-08-2003, 06:10 PM
so you just want a bunch of pages to have the same content?

for that you could use SSI or PHP includes, whichever your host supports. if you have a choice, I would go with PHP so that later you can do more once you know how if you choose to learn, and all your pages would already have the .php extension and everything. you can find information about both at this page:
http://www.lissaexplains.com/html6.shtml

jamingben
07-13-2003, 10:47 PM
thanks very much for the reply. it has really helped and i think i am getting to grips with the idea now. i am just having trouble with one thing. if i have a file in a directory two levels down and i want that page to use a file in it from 2 levels up, then i guessed i would use this code:

<!--#include file="../../file.htm" -->

but this does not work. is this becasue i am using the wrong code, or is it my server. i'll make an example if that would help

thanks again

starlet
07-14-2003, 12:50 AM
Use include virtual if you are linking to different directories...eg

<!--#include virtual="../../file.txt"-->

jamingben
07-14-2003, 11:12 PM
that worked really well

thanks again, very much