[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [ProgSoc] Headers & Footers in Apache
>Martin wrote:
>> Hi All,
>>
>> My website (http://www.mg.dropbear.id.au) uses a common
>> structure for most
>> pages, the top and bottom are always the same, but making a change in
>> either of these means I have to change all the pages.
>>
>> Does anyone know of a way of automatically sticking a common
>> header/footer
>> page on every document served?
>> I hate frames...and don't want to use new stuff like Style sheets or
>> anything like that...
<!--#include {virtual|file}=filename -->
use virtual=filename if you're using (duh..) virtual directories or
servers, or even links to files (the virtual paths can of course be ln -s'd)
otherwise, use file=filename
e.g.
<!--#include file=header.txt -->
<!--#include file=footer.txt -->
These files can have html commands/tags in them, which will be interpreted.
Just remember to make any document that has includes in it World executable
(chmod 644 thing.html).
Doesn't *anyone* refer to TFM anymore? This is definitely in it.
--
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.
This list is archived at <http://www.progsoc.uts.edu.au/lists/progsoc/>