FP includes

S

Seppo Martikainen

Hi,

In our environment we use FP as editing tool and the production server runs
different software. In the preproduction we have a FP site that has subsites
where editing is done. After that the files are moved (not published) to a
preproduction site where all these are form the site that is then FTP:d to
the production server.

We have just moved to FP 2002 SP-2. Preproduction servers run IIS 5 and FP
extensions 5 something. When we were using FP 2000 we used FP includes to
add some items to the page where the included file was above the sub web
i.e. from http://something/subweb/ we were pointing to
http://something/common/. This shouldn't work but it did after couple of
cancel presses. The includes were the type of "/common/somefile.htm". Now
with the new system this doesn't work and I can understand it since it's by
design. But I don't understand why an FP include where the files are under
http://something/subweb for example of type "/common/somefile.htm" don't
work even if the file to be included is in http://something/subweb/common/.

Could you gurus out there give me some insight why it doesn't work if the
sub web is supposed to be a selfcontaining web i.e. why can't you point to
the root of the sub web and then below?

Thanks a lot in advance!

Seppo
 
T

Tom Pepper Willett

It is the nature of the FP include to only work within the web it resides.
--
------------------------------
Tom Pepper Willett
Microsoft MVP - FrontPage
------------------------------
| Hi,
|
| In our environment we use FP as editing tool and the production server
runs
| different software. In the preproduction we have a FP site that has
subsites
| where editing is done. After that the files are moved (not published) to a
| preproduction site where all these are form the site that is then FTP:d to
| the production server.
|
| We have just moved to FP 2002 SP-2. Preproduction servers run IIS 5 and FP
| extensions 5 something. When we were using FP 2000 we used FP includes to
| add some items to the page where the included file was above the sub web
| i.e. from http://something/subweb/ we were pointing to
| http://something/common/. This shouldn't work but it did after couple of
| cancel presses. The includes were the type of "/common/somefile.htm". Now
| with the new system this doesn't work and I can understand it since it's
by
| design. But I don't understand why an FP include where the files are under
| http://something/subweb for example of type "/common/somefile.htm" don't
| work even if the file to be included is in
http://something/subweb/common/.
|
| Could you gurus out there give me some insight why it doesn't work if the
| sub web is supposed to be a selfcontaining web i.e. why can't you point to
| the root of the sub web and then below?
|
| Thanks a lot in advance!
|
| Seppo
|
 
T

Thomas A. Rowe

As long as /common is not a nested subweb under /something/subweb, then yes
it should work.

--

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

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

Seppo Martikainen

/common isn't a nested subweb and it doesn't work if you start the FP
include with "/". It throws an error saying that you can only include files
from the same web - which of course you are doing but MS has had obviously
had other thoughts on the matter ;-)
Seppo
 
T

Thomas A. Rowe

Sorry, I missed the first / .

Your path must be either be:

common/commonfile.htm

or

.../common/commonfile.htm

If you have the web open and then used the Insert | Include dialog, the path
will (should) be written correctly.

--

==============================================
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

Top