navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

How do i apply the same html code to all pages?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> How do i apply the same html code to all pages?
Page: [1] 2   next >   >>
 
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
gorilla

 

Posts: 2974
From: Denmark
Status: offline

 
RE: How do i apply the same html code to all pages? - 5/2/2004 12:55:07   
Use either frontpage includes or server side includes.

The best tutorial on SSI is at www.bignosebird.com

There are lots of postings here about frontpage includes so after you have read this tutorial:

http://www.outfront.net/tutorials_02/getting_started/includes1.htm

the search function should help you there.



_____________________________

Mháircaish

Signature self-censored to protect the sensibilities of the thin-skinned :).

May we never confuse honest dissent with disloyal subversion. – Dwight D. Eisenhower



(in reply to aommaster)
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

(in reply to gorilla)
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!

_____________________________


(in reply to aommaster)
gorilla

 

Posts: 2974
From: Denmark
Status: offline

 
RE: How do i apply the same html code to all pages? - 5/2/2004 18:13:47   
Actuallyt I was talking about searching these forums as it is a topic that comes up a lot :-)

Although now that you mention it some searching and replacing in frontpage often does no harm when done very very carefully. When not done very very carefully it can lead to much angst so back up your website first.

_____________________________

Mháircaish

Signature self-censored to protect the sensibilities of the thin-skinned :).

May we never confuse honest dissent with disloyal subversion. – Dwight D. Eisenhower



(in reply to ellipisces)
ellipisces

 

Posts: 849
Joined: 12/14/2003
Status: offline

 
RE: How do i apply the same html code to all pages? - 5/2/2004 18:28:11   
quote:

Actuallyt I was talking about searching these forums as it is a topic that comes up a lot :-)
ya know, that thought had come to mind...:)

_____________________________


(in reply to gorilla)
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!

(in reply to ellipisces)
ellipisces

 

Posts: 849
Joined: 12/14/2003
Status: offline

 
RE: How do i apply the same html code to all pages? - 5/3/2004 12:01:22   
can be done with search and replace. be very careful! test test test and do it on a backup or developement version of the site.

You may also want to read this post first,
http://www.frontpagewebmaster.com/m-169337/mpage-1/key-includes%252Chead//tm.htm#169337

_____________________________


(in reply to aommaster)
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 :)

(in reply to ellipisces)
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

(in reply to aommaster)
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?

(in reply to BobbyDouglas)
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

(in reply to aommaster)
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 :)

(in reply to BobbyDouglas)
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

(in reply to aommaster)
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:20:05   
Thanx alot, never thought of that! U just saved me about 1 hour of work!

Thanx:)

(in reply to BobbyDouglas)
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

(in reply to BobbyDouglas)
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!

(in reply to BobbyDouglas)
jaybee

 

Posts: 14155
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: How do i apply the same html code to all pages? - 5/3/2004 16:41:55   
FP2003 will work. It allows multiple line replacement.
FP2000 doesn't allow it.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to aommaster)
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

(in reply to jaybee)
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

(in reply to Peppergal)
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?

(in reply to BobbyDouglas)
jaybee

 

Posts: 14155
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: How do i apply the same html code to all pages? - 5/4/2004 4:56:59   
2002 I have no idea. I uninstalled it, it did some horrid things to one of my sites so I went back to 2000 until 2003 arrived.

2003 and php. I can't remember if I checked or not. My php usually opens up automatically in Dreamweaver. I'll have a look tonite when I get home. It allows css edits without any problems.

Microsoft says:
Moderator: Jamie (Microsoft)
Q: Is .php file support planned? FP opens PHP files in plaintext now. Would like to use design

A: You can right click the .php and open as HTML.

but we all know what they say and what actually happens can be two different things.

< Message edited by jaybee -- 5/4/2004 10:04:06 >


_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to aommaster)
Giomanach

 

Posts: 6090
Joined: 11/19/2003
From: England
Status: offline

 
RE: How do i apply the same html code to all pages? - 5/4/2004 7:51:04   
FP2003 + PHP = :)

It won't edit it at all. Don't know why. I am trying to write a patch to force it to take PHP, but I gret tied up with client work:)

_____________________________




(in reply to jaybee)
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

(in reply to aommaster)
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

(in reply to Peppergal)
jaybee

 

Posts: 14155
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: How do i apply the same html code to all pages? - 5/4/2004 13:20:05   
I've never come across the <meta blahblah> tag. Is it a new one? :)

Yes, that should work, just make sure there aren't any line breaks in it. I just tried it out in one of my pages with no spaces between the >< and it was fine.

Or you could try out the Ultraedit package that Bobby mentioned. There seems to be a free version.

But as mentioned above, several times, whichever you go for, back up your entire site first.

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.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to aommaster)
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!

(in reply to jaybee)
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

(in reply to aommaster)
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

(in reply to BobbyDouglas)
jaybee

 

Posts: 14155
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: How do i apply the same html code to all pages? - 5/4/2004 16:25:45   
quote:

ok thanx alot!


YW. Let us know how it goes.


quote:

FP does not treat php pages as normal html pages.


I was hand coding. Were you trying to use the design tab? I never expected that to work, didn't even look. MS aren't going to support open source unless it's theirs or they're forced to.


Ahhhh brain now in gear. No, as per above, wouldn't expect them to support it. Nice if they did but...............

< Message edited by jaybee -- 5/4/2004 21:28:14 >


_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to Peppergal)
Page:   [1] 2   next >   >>

All Forums >> Web Development >> General Web Development >> How do i apply the same html code to all pages?
Page: [1] 2   next >   >>
Jump to: 1





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