|
Posted by William Hughes on 05/22/05 15:15
On Sun, 22 May 2005 12:40:48 +0100, in alt.html Roy Schestowitz
<newsgroups@schestowitz.com> wrote:
> Hywel Jenkins wrote:
> > In article <d6pnju$rnc$1@news2.zwoll1.ov.home.nl>,
> > anonymous@discussions.microsoft.com says...
> >> Hi,
> >>
> >> It must be simple, but I cannot find a solution quickly.
> >>
> >> Without use of frames, I want to place a footer (in this case copyright
> >> text info) as a full text under all my pages.
> >> The full copyright text is in a page "copyright.html".
> >>
> >> What simple HTML code to use to place my "copyright.html" text under all
> >> pages?
> >>
> >> I must have a black out as i cannot find a way that quick ;-(
> >
> > SSI.
>
> Huh?!?!
>
> If your pages are static, e.g. HTML or plain text, you will need to add the
> text to each. You can use Perl scripts to apply operations to batches of
> files, e.g. to add footers to all files or modify the footers. If you
> generate pages on the fly (let us say with PHP), then you need only change
> the 'template' and your life is ever more easy.
Why go to all that trouble? Just use SSI (Server-Side Includes) as Jenkins
indicated:
In each file:
<!--#include virtual="./includes/copyright.txt"-->
</body>
</html>
In "copyright.txt":
<br>
<p align=center>
This page copyright 2005 by I. M. Author.
</p>
Now, if the question is how to put that #include statement into several dozen
files quickly, use an automated text-replacement utility. I use Xchange:
http://www.simes.clara.co.uk/programs/xchange.htm
Navigation:
[Reply to this message]
|