How do I include simple boilerplate text in a page?

G

Guest

I want to add some simple boilerplate text to web pages in Frontpage for
copyright messages, simple navigation etc. This doesn't require server side
includes (SSI) and I do not want to use them.

I would like something like the library items you get in Dreamweaver so I
can define a simple building block and include it in each page I build. If I
then change this text I want Frontpage to re-build and publish all of the
pages with the new text included.

Can I do this?
 
T

Tom Willett

Use the Include page feature.
--
===
Tom Willett
Microsoft MVP - FrontPage
---
FrontPage Support:
http://www.frontpagemvps.com/
===
|I want to add some simple boilerplate text to web pages in Frontpage for
| copyright messages, simple navigation etc. This doesn't require server
side
| includes (SSI) and I do not want to use them.
|
| I would like something like the library items you get in Dreamweaver so I
| can define a simple building block and include it in each page I build. If
I
| then change this text I want Frontpage to re-build and publish all of the
| pages with the new text included.
|
| Can I do this?
|
| --
| Oracle Consultancy http://www.artrange-data.co.uk/
| Educational Toys http://www.kidestore.co.uk/
 
G

Guest

Do you mean using :
<!--#include virtual="footer.html"-->

This is a server side include if I understand it. I don't want to use SSI.

If it is a client side include could you tell me where I find the menu
option to include a code module.

Cheers
 
V

vey

Richard said:
Do you mean using :
<!--#include virtual="footer.html"-->

This is a server side include if I understand it. I don't want to use SSI.

If it is a client side include could you tell me where I find the menu
option to include a code module.

Cheers

No, include page is a webbot, not a server side include. It puts
something like this in the page. <!--webbot bot="Include"
U-Include="_private/footer.htm"
TAG="BODY" startspan -->

I've been using them since FrontPage 1.1 for doing exactly what you are
asking about.

What do you have against server side includes anyway?
 
M

Murray

Assuming the syntax is correct, of course -

<!--#include virtual="/footer.html" -->

or

<!--#include file="footer.html" -->
 
G

Guest

I don't see why the server should be forced to do work to include a
non-changing piece of text every time my pages are requested. Copyright
messages etc. are not going to change frequently and regenerating pages would
be no problem at all.

I also don't think the server I am forced to use supports SSI or this web bot.

In Dreamweaver I can include a library component and if that component
changes DW will regenerate all pages using the component and republish the
site. I end up with a pure HTML site but retain the modular build approach.
Does FP (2003) have something similar?

Thanks for the help so far.

Richard
 
K

Kathleen Anderson [MVP - FrontPage]

Hi Richard:
You can use the FrontPage Include Component for this - it doesn't require
that the FP server extensions be installed on the remote server.

--

~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
web: http://www.spiderwebwoman.com/resources/
Please reply to the newsgroup for the benefit of others
 
M

Murray

Nor does it require server participation in the assembly of the page at all.

But I think the days of worrying about coddling servers ended in the 90's.
 
V

vey

Richard said:
I don't see why the server should be forced to do work to include a
non-changing piece of text every time my pages are requested.

Uh, there is not much pressure on the server. I ran sites on a PPro 350
for 7 years and I never noticed anything one way or the other. But if
you want a static page, no sweat, just copy and paste your copyright on
the bottom of every page. Or you could make a template page with what
you want at the bottom and add the contents above it.

Except every year, you would have to change single every page, where if
you added an included page, you would change just one page and FrontPage
would do the rest.

Copyright
messages etc. are not going to change frequently and regenerating pages would
be no problem at all.

I also don't think the server I am forced to use supports SSI or this web bot.

If the server supports the FrontPage Extensions, it does.
In Dreamweaver I can include a library component
and if that component
changes DW will regenerate all pages using the component and republish the
site. I end up with a pure HTML site but retain the modular build approach.
Does FP (2003) have something similar?

Then use Dreamweaver if you are so happy with it. We aren't on
commission here. In fact we work for free. Which reminds me, why am I
wasting my time on a knucklehead when I could be making money?

Pardon me, while I go back to work.
 
V

vey

Murray said:
Nor does it require server participation in the assembly of the page at all.

But I think the days of worrying about coddling servers ended in the 90's.

That's good news to hear because I have a ~2000 page site and was a bit
worried about when I would get notice that my provider was discontinuing
FPSE. They promised last year not for at least 5 years, but one never knows.
 
G

Guest

I have tried this - I now have a number of statements in my html and none of
them seem to work. Maybe I am doing something wrong.

The code is at http://www.dianemaclean.co.uk/include_test.htm and looks like
this :

<!--#include virtual="./footer.htm"-->
<!--#include virtual="/footer.htm" -->
<!--#include file="footer.html" -->

<!--webbot bot="Include" U-Include="footer.htm" TAG="BODY" startspan
--><!--webbot bot="Include" i-checksum="0" endspan -->

Confused!!!
 
K

Kathleen Anderson [MVP - FrontPage]

Open the page you want to include the footer into, position the cursor where
you want the footer, then Insert > Web Component > Included Content > Page
and click Finish. In the Include Page Properties box, browse to the footer
page and click OK.

--

~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
web: http://www.spiderwebwoman.com/resources/
Please reply to the newsgroup for the benefit of others
 
V

vey

Richard said:
I have tried this - I now have a number of statements in my html and none of
them seem to work. Maybe I am doing something wrong.

The code is at http://www.dianemaclean.co.uk/include_test.htm and looks like
this :

<!--#include virtual="./footer.htm"-->
<!--#include virtual="/footer.htm" -->
<!--#include file="footer.html" -->

<!--webbot bot="Include" U-Include="footer.htm" TAG="BODY" startspan
--><!--webbot bot="Include" i-checksum="0" endspan -->

Confused!!!

That's because you are making this whole thing harder than it has to be.
Open a page in design view. Insert (up at the top) | Web Component |
look down the list until you see Included Content | Page . It will ask
for te page to include. You have a page ready to include, don't you?
Don't just make one up. If you have to make the page, then cancel and
start again.
 
G

Guest

Sorry if asking about a feature I have seen in another package is being a
knucklehead!

I understand I can hard code the text in each page, I know this is not a
good thing, I also know not every server includes all of these 'server
features' and it is a rather sophisticated solution for my problem.

If I cannot do this in FP then I will just have to work around.

Thanks for trying to help me though - it is appreciated!

Richard
 
G

Guest

Thanks for the reply.

I have tried this - it generated the code :
<!--webbot bot="Include" U-Include="footer.htm" TAG="BODY" startspan
--><!--webbot bot="Include" i-checksum="0" endspan -->

Which still does not work on my server.

I guess I will have to use some other method.

Thanks for helping - much appreciated.

Richard
 
V

vey

Richard said:
Sorry if asking about a feature I have seen in another package is being a
knucklehead!

I understand I can hard code the text in each page, I know this is not a
good thing, I also know not every server includes all of these 'server
features' and it is a rather sophisticated solution for my problem.

If I cannot do this in FP then I will just have to work around.

Thanks for trying to help me though - it is appreciated!

Richard

Don't hardcode. Go with the flow and use the wizards.
 
V

vey

Richard said:
Thanks for the reply.

I have tried this - it generated the code :
<!--webbot bot="Include" U-Include="footer.htm" TAG="BODY" startspan
--><!--webbot bot="Include" i-checksum="0" endspan -->

Which still does not work on my server.

I guess I will have to use some other method.

Thanks for helping - much appreciated.

Richard

Stop hardcoding.
 
M

Murray

For the HTML includes to work, the parent page must be named with an
*.shtm(l) extension - to trigger a server parse of the page. The FP
includes will be inserted in the page AS YOU PUBLISH it.
 

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

Top