How To Update Several Pages At Once. Please Help!

  • Thread starter The Leet Beagle
  • Start date
T

The Leet Beagle

Hello. Here is my goal:

To put a small banner at the top of every single web page on my site
that reads:

"My site is moving! Please go here starting February 1st!!!"

How can I easily and most quickly achieve this? I'd like to do it in
one fell swoop without opening each page manually. I'm using FP2002.

Thanks so much!!

NJK
 
D

David Berry

Short of using a frameset you'll have to be a little creative. If all your
<body> tags on your site are the same it would make it easier. First,
create a page that has the text and link you want and then save it somewhere
in your web. Then open a BLANK page and choose Insert, Component, Include
Page. Then switch to HTML View and copy the code it produced. It should
look something like this:

<!--webbot bot="Include" U-Include="MyPage.HTM" TAG="BODY" -->

Now close that page, don't save it. Click on Folders View and choose Edit,
Replace. What you want to do here is replace your current BODY tag with the
SAME Body tag PLUS the code for the include page (that will put it at the
top of your pages). So for FIND put:

<body> (or whatever you have on all your pages) and for REPLACE put:

<body><!--webbot bot="Include" U-Include="MyPage.HTM" TAG="BODY" -->

Check the box to "Find in HTML", All pages.

If the body tag is consistent on all pages this will add the include file to
the top of the pages. Note, there may be issues is there are pages in
different folders because the path to the include page will be different.
Ex: ../page.htm or ../../page.htm etc. You can get around that by putting
the include page in every folder so the path is always relative to where the
page is when you do the replace.
 
W

wp

Why don't you just add a top shared border to "all pages"? I can't think of anything easier than that.
 
A

Andrew Murray

Two suggestions:

1) Shared borders? That will display the content on each page, and you need only
open one, say default.htm or index.htm (or whatever) insert the message into the
top border of that page, then apply the top border to all pages rather than
current page - FP should apply the top border without the need to open all
pages....

2) You could also do it with SSI (Server Side Includes) but you'd have to open
all pages to insert the SSI code fragment into each page.
 
T

The Leet Beagle

I like it.

Thanks!
NJK

David Berry said:
Short of using a frameset you'll have to be a little creative. If all your
<body> tags on your site are the same it would make it easier. First,
create a page that has the text and link you want and then save it somewhere
in your web. Then open a BLANK page and choose Insert, Component, Include
Page. Then switch to HTML View and copy the code it produced. It should
look something like this:

<!--webbot bot="Include" U-Include="MyPage.HTM" TAG="BODY" -->

Now close that page, don't save it. Click on Folders View and choose Edit,
Replace. What you want to do here is replace your current BODY tag with the
SAME Body tag PLUS the code for the include page (that will put it at the
top of your pages). So for FIND put:

<body> (or whatever you have on all your pages) and for REPLACE put:

<body><!--webbot bot="Include" U-Include="MyPage.HTM" TAG="BODY" -->

Check the box to "Find in HTML", All pages.

If the body tag is consistent on all pages this will add the include file to
the top of the pages. Note, there may be issues is there are pages in
different folders because the path to the include page will be different.
Ex: ../page.htm or ../../page.htm etc. You can get around that by putting
the include page in every folder so the path is always relative to where the
page is when you do the replace.
 
Top