• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 465
  • Last Modified:

How to find/replace delete include files in Frontpage

I have a site that uses two elements to the header page of each page. These are included in each page throughout the site via the following two lines:

<!--webbot bot="Include" U-Include="../includes/header.htm" TAG="BODY" -->
<!--webbot bot="Include" U-Include="../includes/header1.htm" TAG="BODY" -->

Now I have redesigned my site and incorporated the changes into the /includes/header.htm file and so want to delete the references to the header1.htm file in each page. However, I cannot use the Find/Replace function to delete the second line above ... I always a "no occurences were found" message.

Is there a way to do this apart from the manual process of editing the code in every single page on the site?

Thanks for any help.
0
scarlett3
Asked:
scarlett3
  • 5
  • 2
  • 2
2 Solutions
 
James MurrellProduct SpecialistCommented:
I think manual is the only way, do a find for just header1.htm it will then open the list and manully delete them
 
 
 
 
0
 
James MurrellProduct SpecialistCommented:
just a thought untick match case
 
0
 
James MurrellProduct SpecialistCommented:
also from memory I do not think you can use absolute paths in the FP include function
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
scarlett3Author Commented:
Yes, I use the find function to locate the "../includes/header1.htm" references in the code, but there are a lot of pages to manually edit :(

It would save me a lot of time if there was a workaround.
0
 
brundoCommented:
If I've unserstood you correctly, you can do it with Replace function.

Just choose All pages under Find where and check Find in source code. Text <!--webbot bot="Include" U-Include="../includes/header1.htm" TAG="BODY" --> should come under Find what and Replace with should be empty.

If you don't like empty line which you get by this procedure, you can go further: chech Regular expressions and under Find what put <!--webbot bot="Include" U-Include="../includes/header1.htm" TAG="BODY" -->\n (\n is for new line).

Advice for testing: test it on onde file only (without all pages checked).
Advice for the "serious" replace: backup your site first.
0
 
scarlett3Author Commented:
Thanks brundo, but that is exactly what I had tried previously and this resulted in the 'No occurences were found' result.

If I manually open a page, the 'find' function does find the text when I select 'Current page' for 'Find where:'. However, when I try to find the text in pages that are not open, this is when I get teh no occurences were found result.
0
 
James MurrellProduct SpecialistCommented:
if you opened each page before find and replace would that help
0
 
brundoCommented:
I've tried it now, too... FrontPage finds the string on the open pages, on all pages it doesn't :-((

I've even tried to make it in two steps, i.e. not the whole "comment" at once. FrontPage wrote me some strange things instead of my Replace with string.

Maybe you can open all the pages? Or 20 by 20 pages? Then replace should work...

The next possibility is to make FrontPage ignore webbot... no idea how (I work without FP extensions and other nonstandard things, but it doesn't help).

Actually, I would now stop playing with FrontPage and open Notepad++. There you have function Replace in Files. You have to say in which folder your files are and choose option Extended to find \n as new line.

And conclusion for the next web site :-)) : write common parts of all pages in a dynamic template. In such case you have to change your head element only once...
0
 
James MurrellProduct SpecialistCommented:
have to agree with brundo if i have many to do i use  Notepad++
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

  • 5
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now