Includes

D

Danette

I am trying to change my site from frames. Since I use
FP2000, this has been very difficult. I have many links
and many pages. Someone suggested doing "includes" so I
can just change that page, and not 500 pages!
My problem:

I have this code:
<!--#include file="include/header.htm" -->
(body goes here- blah, blah)
<!--#include file="include/footer.htm" -->

I have created the "header" and footer" and uploaded them.
so I took a sample.htm, put the code in, uploaded, and
the header and footer don't show up! what am I doing
wrong??
another thing- when I "view source" on the sample.htm, it
doesn't show the codes above.. is Frontpage taking them
out?

Please help!
Thank you!
Danette
The Mystic Kitchen
www.mystickitchen.com
 
T

Tom Pepper Willett

Perhaps they were suggesting the FP include component?
--
-----
Tom Pepper Willett
Microsoft MVP - FrontPage
http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
http://msdn.microsoft.com/office/understanding/frontpage/
----
| I am trying to change my site from frames. Since I use
| FP2000, this has been very difficult. I have many links
| and many pages. Someone suggested doing "includes" so I
| can just change that page, and not 500 pages!
| My problem:
|
| I have this code:
| <!--#include file="include/header.htm" -->
| (body goes here- blah, blah)
| <!--#include file="include/footer.htm" -->
|
| I have created the "header" and footer" and uploaded them.
| so I took a sample.htm, put the code in, uploaded, and
| the header and footer don't show up! what am I doing
| wrong??
| another thing- when I "view source" on the sample.htm, it
| doesn't show the codes above.. is Frontpage taking them
| out?
|
| Please help!
| Thank you!
| Danette
| The Mystic Kitchen
| www.mystickitchen.com
 
T

Thomas A. Rowe

You can only use:

<!--#include file="include/header.htm" -->

If you are hosted on a server with SSI or ASP and then you would have to
rename all pages to have either .asp or .shtml extensions.

Instead use the FP Include Page component, under Insert Menu | Components |
Include.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top