|
| |
|
|
aommaster
Posts: 33 Joined: 5/2/2004 Status: offline
|
How do i apply the same html code to all pages? - 5/2/2004 12:44:13
Hi! I have about 500 pages, so my life depends on this! How do i apply the same html tag to all the pages of my website? So, that if i only add it to one page, I can make all the other pages have it as a tag? Thanx guys
|
|
|
|
BobbyDouglas
Posts: 5456 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: How do i apply the same html code to all pages? - 5/2/2004 13:18:01
Are you wanting to do the SSI like gorila said? Or were you wanting to click a button and have the piece of code pasted at a specific point in each page? 500 pages is a lot to edit!
< Message edited by BobbyDouglas -- 5/2/2004 13:18:23 >
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
ellipisces
Posts: 849 Joined: 12/14/2003 Status: offline
|
RE: How do i apply the same html code to all pages? - 5/2/2004 17:46:41
quote:
the search function should help you there. what Gorilla is talking about here, is in the case that you need to do this retro-actively. What I would do is to use a copy of a backup, and use the search and replace function in Frontpage. Search and replace will parse through the site and replace all instances of (say, "Phone: 301-444-5555" with "Phone: 301-666-7777") one text string with another. Again, I would not do this to a production site, until I had tested it thoroughly!
_____________________________
|
|
|
|
aommaster
Posts: 33 Joined: 5/2/2004 Status: offline
|
RE: How do i apply the same html code to all pages? - 5/3/2004 10:25:04
I actually wanted to add a meta tag at the head of each document!
|
|
|
|
aommaster
Posts: 33 Joined: 5/2/2004 Status: offline
|
RE: How do i apply the same html code to all pages? - 5/3/2004 13:21:43
quote:
ORIGINAL: ellipisces can be done with search and replace. Search and replace??? That's only if i wanted to replace something. I want to add something to every page! I think i'll just have to do it manually :)
|
|
|
|
BobbyDouglas
Posts: 5456 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: How do i apply the same html code to all pages? - 5/3/2004 13:50:16
Let's say you have the following: <meta name="author" content="Your Name">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="content-language" content="en">
<meta name="revisit-after" content="15 Days"> And you want to add <meta name="rating" content="General"> in between <meta http-equiv="content-language" content="en">
<meta name="revisit-after" content="15 Days"> What you do is search finding <meta http-equiv="content-language" content="en">
<meta name="revisit-after" content="15 Days"> And replacing it with: <meta http-equiv="content-language" content="en">
<meta name="rating" content="General">
<meta name="revisit-after" content="15 Days"> This will place that new tag in the correct location. First make a backup of everything. Then just do it on one page to begin with, no need to test it on the entire website. If it works on the first page, then apply it to the entire web site. View a lot of the pages before you go ahead and publish them.
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
aommaster
Posts: 33 Joined: 5/2/2004 Status: offline
|
RE: How do i apply the same html code to all pages? - 5/3/2004 14:03:36
Well, that's a good idea, i have to say. There is only one problem with this, and that is that the tags are not always in that orfder :( sometimes, one tag comes bnefore the other, is there any way of generalising this?
|
|
|
|
BobbyDouglas
Posts: 5456 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: How do i apply the same html code to all pages? - 5/3/2004 14:08:06
You could have someone write a program that will do it, but to be honest it would be a waste of time. It depends how much the tags vary. Can you randomly select two different pages and post the stuff from <html> to <body> for me?
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
aommaster
Posts: 33 Joined: 5/2/2004 Status: offline
|
RE: How do i apply the same html code to all pages? - 5/3/2004 14:12:50
MY webiste is already up http://www.dragonslair.co.nr help urself to the sources :)
|
|
|
|
BobbyDouglas
Posts: 5456 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: How do i apply the same html code to all pages? - 5/3/2004 14:18:56
It looks like every page has: <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document"> Inside the top area. Basically I would do a search for <meta name="ProgId" content="FrontPage.Editor.Document"> and then replace it with <meta name="ProgId" content="FrontPage.Editor.Document">
<meta name="Second1" content="ok"> Assuming you want to add <meta name="Second1" content="ok"> below <meta name="ProgId" content="FrontPage.Editor.Document">
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
BobbyDouglas
Posts: 5456 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: How do i apply the same html code to all pages? - 5/3/2004 14:23:00
There is a program called UltraEdit -32 that has a very powerful search and replace feature. I think FrontPage might not work for doing the search and replacing, so I would use UE instead. If you decide to use a program outside of FP make sure that you already have a backup of the web site, and FP is closed.
< Message edited by BobbyDouglas -- 5/3/2004 14:24:11 >
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
aommaster
Posts: 33 Joined: 5/2/2004 Status: offline
|
RE: How do i apply the same html code to all pages? - 5/3/2004 14:25:42
yeah, I've heard of that program. Looks like a good idea!
|
|
|
|
Peppergal
Posts: 2204 Joined: 9/20/2002 Status: offline
|
RE: How do i apply the same html code to all pages? - 5/3/2004 23:13:23
quote:
FP2003 will work. It allows multiple line replacement. FP2000 doesn't allow it. FINALLY, I have found one good reason for me to upgrade to '03.
_____________________________
Northeast PA / Poconos/ Lake Wallenpaupack Real Estate wallenpaupacklakeproperty.com Karen's Real Estate Blog
|
|
|
|
BobbyDouglas
Posts: 5456 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: How do i apply the same html code to all pages? - 5/3/2004 23:30:25
Thanks jaybee, I haven't worked with 2003 much. Would it also edit .php extensions? Or only the files it is normally used to handle inside of frontpage? (Html/Htm/Asp ect.)
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
aommaster
Posts: 33 Joined: 5/2/2004 Status: offline
|
RE: How do i apply the same html code to all pages? - 5/4/2004 2:28:49
What about Fp 2002/XP (don't know what its called!) Does that allow multiple line replacement?
|
|
|
|
Peppergal
Posts: 2204 Joined: 9/20/2002 Status: offline
|
RE: How do i apply the same html code to all pages? - 5/4/2004 9:53:05
quote:
What about Fp 2002 I have 2002, and as far as I can see, you can only do single line find/replace. Which totally, completely, stinks.
_____________________________
Northeast PA / Poconos/ Lake Wallenpaupack Real Estate wallenpaupacklakeproperty.com Karen's Real Estate Blog
|
|
|
|
aommaster
Posts: 33 Joined: 5/2/2004 Status: offline
|
RE: How do i apply the same html code to all pages? - 5/4/2004 10:46:36
so, any other ideas? Does a tag like this work: <meta blahblahblah> <meta blahblahblahblahblah> if it does, then i can just put that tag in front of the previous tag
|
|
|
|
aommaster
Posts: 33 Joined: 5/2/2004 Status: offline
|
RE: How do i apply the same html code to all pages? - 5/4/2004 13:41:36
ok thanx alot!
|
|
|
|
BobbyDouglas
Posts: 5456 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: How do i apply the same html code to all pages? - 5/4/2004 15:13:10
There seems to be a free version. - I believe it is a 30-day trial period. Dan & Bobby, you can edit php in FP2003. RIGHT click on the file name in the FP folder list and choose open with HTML. I just did it and saved it. - Yes you can edit anything you want to in FP. You need to configure FP as teh default editor for the file. You can even edit .exe files, but that is beside the point. FP does not treat php pages as normal html pages. It will not update those pages! If you put an image inside a page named test.php, and change the name of the image inside of FP, it will not update that image inside the code of the php page. You would think MS would have at least SOME sense when upgrading their product.
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
Peppergal
Posts: 2204 Joined: 9/20/2002 Status: offline
|
RE: How do i apply the same html code to all pages? - 5/4/2004 15:50:30
quote:
You would think MS would have at least SOME sense when upgrading their product. why would anyone think that? LOL
_____________________________
Northeast PA / Poconos/ Lake Wallenpaupack Real Estate wallenpaupacklakeproperty.com Karen's Real Estate Blog
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|