Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: copyright footer on multiple html pages

  • Subject: Re: copyright footer on multiple html pages
  • From: William Hughes <cvproj@texas.net>
  • Date: Sun, 22 May 2005 07:15:01 -0500
  • Newsgroups: alt.html
  • Organization: St. Dismas Infirmary for the Incurably Informed
  • References: <d6pnju$rnc$1@news2.zwoll1.ov.home.nl> <MPG.1cfa76abc2c897869896da@news.eclipse.net.uk> <d6prb7$28kg$2@godfrey.mcc.ac.uk>
  • Reply-to: cvproj@texas.net
  • Xref: news.mcc.ac.uk alt.html:287818
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



[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index