How to remove an 'Include' web component?

B

Bum Leg

I used the web component "include" to make a banner and by search and
replace put it on all pages of my site (134 pages). Now I'm thinking this
is less efficient than just using shared borders (which I gather is a
special kind of include, anyway) and want to remove the include.

Problem is I can't get it out of my pages by search and replace. The all
over search and replace will not find it in any but the page that's showing,
even though i've asked it to strip it out of all pages in the HTML.

the line I'm trying to remove looks like this
<!--webbot bot="Include" U-Include="TOPTITLE.htm" TAG="BODY" -->


What's with this?
 
P

Peter Taurins

An include is a design time component in FP.

When you save the page you have the include on, it actually includes all of
the HTML from the included page.

Browse one of your that you have the include on, then view source and you'll
see that the HTML file has ALL of the HTML that you included.

That's why you can't seach and replace just the original web bot. It now has
the included HTML embedded in it.

HTH.
PWT.
 
T

Thomas A. Rowe

First, consider keep using the FP Include as give you a lot more flexibility
in placement on your pages, where Shared Borders are limited to the 4
outside edges of your pages.

Anyway, if your web content is organized into folders, you have to do a
search and replace by folder since the path to the include has been adjusted
based on the container page location.

So the following path would only be valid for container pages located in the
same folder as the Include page itself:

<!--webbot bot="Include" U-Include="TOPTITLE.htm" TAG="BODY" -->

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top