scarlett3
asked on
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/hea der.htm" TAG="BODY" -->
<!--webbot bot="Include" U-Include="../includes/hea der1.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.
<!--webbot bot="Include" U-Include="../includes/hea
<!--webbot bot="Include" U-Include="../includes/hea
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.
I think manual is the only way, do a find for just header1.htm it will then open the list and manully delete them
just a thought untick match case
also from memory I do not think you can use absolute paths in the FP include function
ASKER
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.
It would save me a lot of time if there was a workaround.
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/hea der1.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/hea der1.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.
Just choose All pages under Find where and check Find in source code. Text <!--webbot bot="Include" U-Include="../includes/hea
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/hea
Advice for testing: test it on onde file only (without all pages checked).
Advice for the "serious" replace: backup your site first.
ASKER
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
have to agree with brundo if i have many to do i use Notepad++