This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Front Page > January 2005 > Find and Replace sections of code
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Find and Replace sections of code
|
|
| Michael Hoeben 2005-01-28, 11:16 pm |
| Hi,
I have recently revised parts of my website and I need to add things like my
adsense code to every page, plus a couple of banners etc. However, with some
50+ pages, this is a mission.
Find & replace only works if you have one line of text at a time, whereas
typically the line of code may be split over two or three lines.
How can I find and replace - or better yet; find a marker and insert a bunch
of text throughout my site. I do use includes here and there for menus and
page footers, but I'm not sure how to replace two or three lines of code at a
time.
Thanks
Michael
www.simplebiz4u.co.uk
| |
| Thomas A. Rowe 2005-01-28, 11:17 pm |
| If using FP2003, you can do this, however prior version, not possible, so you would have to manually
update it page. 50 + pages is really not that bad, I have do it with 500 pages, because I still use
FP2000.
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
"Michael Hoeben" <MichaelHoeben@discussions.microsoft.com> wrote in message
news:CA5FD2DF-C3FB-467B-AB88-572088097387@microsoft.com...
> Hi,
>
> I have recently revised parts of my website and I need to add things like my
> adsense code to every page, plus a couple of banners etc. However, with some
> 50+ pages, this is a mission.
> Find & replace only works if you have one line of text at a time, whereas
> typically the line of code may be split over two or three lines.
>
> How can I find and replace - or better yet; find a marker and insert a bunch
> of text throughout my site. I do use includes here and there for menus and
> page footers, but I'm not sure how to replace two or three lines of code at a
> time.
>
> Thanks
> Michael
>
> www.simplebiz4u.co.uk
| |
| Michael Hoeben 2005-01-30, 12:21 pm |
| Thanks for that.
Michael
"Thomas A. Rowe" wrote:
> If using FP2003, you can do this, however prior version, not possible, so you would have to manually
> update it page. 50 + pages is really not that bad, I have do it with 500 pages, because I still use
> FP2000.
>
> --
> ==============================================
> Thomas A. Rowe (Microsoft MVP - FrontPage)
> WEBMASTER Resources(tm)
> http://www.ycoln-resources.com
> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> ==============================================
> To assist you in getting the best answers for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
>
> "Michael Hoeben" <MichaelHoeben@discussions.microsoft.com> wrote in message
> news:CA5FD2DF-C3FB-467B-AB88-572088097387@microsoft.com...
>
>
>
| |
| Michael Hoeben 2005-01-30, 7:16 pm |
| Hi Thomas,
Any idea if I could use an alternative external text editor that can process
such changes to my frontpage html files?
If I do edit my pages like that, will I be causing problems later on with
the frontpage extensions, when I come to publishing my site?
I have identified a few text editors that may be able to do what I need, (in
the short term) until I can buy fp2003.
Michael
"Michael Hoeben" wrote:
[color=darkred]
> Thanks for that.
>
> Michael
>
> "Thomas A. Rowe" wrote:
>
| |
| Thomas A. Rowe 2005-01-30, 7:16 pm |
| When you use any external app to modify files within a FP web, the hidden index files are not
updated, which will lead to problems, since FP will not know that changes have been made. Sometimes
you can run Tools | Recalculate Hyperlinks and that will update the hidden indexes, however it
doesn't always solve problems when you changes content outside of FP.
In the past I have used version 3 of HomeSite to make multi-line global changes by copying all of
the pages to be changed to a folder outside of my web, then making the changes, then with the web
open in FP, re-import the pages back into the web, this way FP will update the hidden index files,
but I did run into issues with pages that had Included content. So be warned if you use Themes,
Shared Borders, FP Includes, navigation that do this may cause problems with your site structure.
BTW: From the time that you originally posted your first message about this, to now, you really
could have updated all of your pages.
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
"Michael Hoeben" <MichaelHoeben@discussions.microsoft.com> wrote in message
news:0F6F01C7-0A4B-4350-996B-716F77D7056B@microsoft.com...[color=darkred]
> Hi Thomas,
> Any idea if I could use an alternative external text editor that can process
> such changes to my frontpage html files?
>
> If I do edit my pages like that, will I be causing problems later on with
> the frontpage extensions, when I come to publishing my site?
>
> I have identified a few text editors that may be able to do what I need, (in
> the short term) until I can buy fp2003.
>
> Michael
>
>
> "Michael Hoeben" wrote:
>
| |
| Michael Hoeben 2005-01-30, 7:16 pm |
| Thanks Thomas. You are right. I could have probably done them all - but I'm
still dithering about creating a mysql database for these pages, in which
case my efforts to update all of them would be wasted.
Thanks again.
"Thomas A. Rowe" wrote:
> When you use any external app to modify files within a FP web, the hidden index files are not
> updated, which will lead to problems, since FP will not know that changes have been made. Sometimes
> you can run Tools | Recalculate Hyperlinks and that will update the hidden indexes, however it
> doesn't always solve problems when you changes content outside of FP.
>
> In the past I have used version 3 of HomeSite to make multi-line global changes by copying all of
> the pages to be changed to a folder outside of my web, then making the changes, then with the web
> open in FP, re-import the pages back into the web, this way FP will update the hidden index files,
> but I did run into issues with pages that had Included content. So be warned if you use Themes,
> Shared Borders, FP Includes, navigation that do this may cause problems with your site structure.
>
> BTW: From the time that you originally posted your first message about this, to now, you really
> could have updated all of your pages.
>
> --
> ==============================================
> Thomas A. Rowe (Microsoft MVP - FrontPage)
> WEBMASTER Resources(tm)
> http://www.ycoln-resources.com
> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> ==============================================
> To assist you in getting the best answers for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
>
> "Michael Hoeben" <MichaelHoeben@discussions.microsoft.com> wrote in message
> news:0F6F01C7-0A4B-4350-996B-716F77D7056B@microsoft.com...
>
>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|