Location of DWT Files?

A

Alex

I'm early on the learning curve for using DWTs in FP 2003. To keep the site
easy to manage, I'd planned to put index.htm and other top-level files in
the root folder of the website, with other stuff in sub-folders. It seemed
logical to me that the Dynamic Web Templates for the site should be in their
own folder as well. Yet when I attempted to build the site this way, several
pages were "broken" -- a graphic in the header would not show up in the
published pages, for example, or an "include" page would not work. After I
moved the DWT files to the top or root level of the web, everything worked
fine.

Am I missing something, or does FP 2003 not "like" having DWTs anywhere but
in the root folder of the website?

Alex
 
R

Ronx

I have my DWTs in their own folder, use graphics and FrontPage include files
in the DWT, and have never seen that problem.
However, if you are using ASP or SSI includes, then the path to the include
will not be updated, since it is inside an HTML comment. Similarly, any
links that are made using JavaScript[1] will also not be corrected -
FrontPage does not manage scripted links. In both these cases consider
using absolute links or root relative links instead of relative links.

[1] The exception to this rule is when the JavaScript is inserted as a
result of a FrontPage behaviour - the links are (usually) adjusted in this
case.
 
A

Alex

Ron,

I think you hit it. I tend to use a lot of "include" pages (for headers, nav
bars, etc.) to keep the DWT itself simple. I will try using absolute or
root-relative links.

Thanks,

Alex

Ronx said:
I have my DWTs in their own folder, use graphics and FrontPage include
files
in the DWT, and have never seen that problem.
However, if you are using ASP or SSI includes, then the path to the
include
will not be updated, since it is inside an HTML comment. Similarly, any
links that are made using JavaScript[1] will also not be corrected -
FrontPage does not manage scripted links. In both these cases consider
using absolute links or root relative links instead of relative links.

[1] The exception to this rule is when the JavaScript is inserted as a
result of a FrontPage behaviour - the links are (usually) adjusted in this
case.
--
Ron Symonds
Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

Alex said:
I'm early on the learning curve for using DWTs in FP 2003. To keep the site
easy to manage, I'd planned to put index.htm and other top-level files in
the root folder of the website, with other stuff in sub-folders. It
seemed
logical to me that the Dynamic Web Templates for the site should be in their
own folder as well. Yet when I attempted to build the site this way, several
pages were "broken" -- a graphic in the header would not show up in the
published pages, for example, or an "include" page would not work. After
I
moved the DWT files to the top or root level of the web, everything
worked
fine.

Am I missing something, or does FP 2003 not "like" having DWTs anywhere but
in the root folder of the website?

Alex
 
T

Thomas A. Rowe

If using the FP Include Page component, all links to the page to be included must be relative, and
if you want FP to manage any of the link on the pages being included, they must be also be relative.

Examples

href ="../pagename.htm"

or

href ="../foldername/pagename.htm"

or

href ="pagename.htm"

or

href ="foldername/pagename.htm"

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

Alex said:
Ron,

I think you hit it. I tend to use a lot of "include" pages (for headers, nav bars, etc.) to keep
the DWT itself simple. I will try using absolute or root-relative links.

Thanks,

Alex

Ronx said:
I have my DWTs in their own folder, use graphics and FrontPage include files
in the DWT, and have never seen that problem.
However, if you are using ASP or SSI includes, then the path to the include
will not be updated, since it is inside an HTML comment. Similarly, any
links that are made using JavaScript[1] will also not be corrected -
FrontPage does not manage scripted links. In both these cases consider
using absolute links or root relative links instead of relative links.

[1] The exception to this rule is when the JavaScript is inserted as a
result of a FrontPage behaviour - the links are (usually) adjusted in this
case.
--
Ron Symonds
Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

Alex said:
I'm early on the learning curve for using DWTs in FP 2003. To keep the site
easy to manage, I'd planned to put index.htm and other top-level files in
the root folder of the website, with other stuff in sub-folders. It seemed
logical to me that the Dynamic Web Templates for the site should be in their
own folder as well. Yet when I attempted to build the site this way, several
pages were "broken" -- a graphic in the header would not show up in the
published pages, for example, or an "include" page would not work. After I
moved the DWT files to the top or root level of the web, everything worked
fine.

Am I missing something, or does FP 2003 not "like" having DWTs anywhere but
in the root folder of the website?

Alex
 
A

Alex

Thomas,

I used the Web Component | Included Page option, and navigated to the
appropriate file (e.g. header_nav.htm) via the browse option offered by FP
03. I tried this with the DWT files in a subfolder (with brilliant
imagination, I named this folder \dwt) and with the include pages in that
folder as well. The result looked fine on my PC, but when published, the
included page with the header graphic did not show up -- just an empty box.

I believe my next try was with the DWT files in their own folder, and the
include pages in the root, and my recollection is that this did not work
either.

When I moved the DWT files to the root, along with everything else, it
worked fine. Not as tidy, but functional.

Did FP have a problem because both the DWT and include files were together
in one folder, but the pages to which the DWT files were applied were in
another? Did the same-folder location of the DWTs and "includes" mean there
was insufficient information in the relative links for use of the DWTs on
files away from that location?

Sorry for the entry-level questions. As noted earlier, I am new to DWTs.

Alex

Thomas A. Rowe said:
If using the FP Include Page component, all links to the page to be
included must be relative, and if you want FP to manage any of the link on
the pages being included, they must be also be relative.

Examples

href ="../pagename.htm"

or

href ="../foldername/pagename.htm"

or

href ="pagename.htm"

or

href ="foldername/pagename.htm"

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

Alex said:
Ron,

I think you hit it. I tend to use a lot of "include" pages (for headers,
nav bars, etc.) to keep the DWT itself simple. I will try using absolute
or root-relative links.

Thanks,

Alex

Ronx said:
I have my DWTs in their own folder, use graphics and FrontPage include
files
in the DWT, and have never seen that problem.
However, if you are using ASP or SSI includes, then the path to the
include
will not be updated, since it is inside an HTML comment. Similarly, any
links that are made using JavaScript[1] will also not be corrected -
FrontPage does not manage scripted links. In both these cases consider
using absolute links or root relative links instead of relative links.

[1] The exception to this rule is when the JavaScript is inserted as a
result of a FrontPage behaviour - the links are (usually) adjusted in
this
case.
--
Ron Symonds
Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

I'm early on the learning curve for using DWTs in FP 2003. To keep the
site
easy to manage, I'd planned to put index.htm and other top-level files
in
the root folder of the website, with other stuff in sub-folders. It
seemed
logical to me that the Dynamic Web Templates for the site should be in
their
own folder as well. Yet when I attempted to build the site this way,
several
pages were "broken" -- a graphic in the header would not show up in the
published pages, for example, or an "include" page would not work.
After I
moved the DWT files to the top or root level of the web, everything
worked
fine.

Am I missing something, or does FP 2003 not "like" having DWTs anywhere
but
in the root folder of the website?

Alex
 
T

Thomas A. Rowe

How did you create the link to the header graphic in header_nav.htm page?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

Alex said:
Thomas,

I used the Web Component | Included Page option, and navigated to the appropriate file (e.g.
header_nav.htm) via the browse option offered by FP 03. I tried this with the DWT files in a
subfolder (with brilliant imagination, I named this folder \dwt) and with the include pages in
that folder as well. The result looked fine on my PC, but when published, the included page with
the header graphic did not show up -- just an empty box.

I believe my next try was with the DWT files in their own folder, and the include pages in the
root, and my recollection is that this did not work either.

When I moved the DWT files to the root, along with everything else, it worked fine. Not as tidy,
but functional.

Did FP have a problem because both the DWT and include files were together in one folder, but the
pages to which the DWT files were applied were in another? Did the same-folder location of the
DWTs and "includes" mean there was insufficient information in the relative links for use of the
DWTs on files away from that location?

Sorry for the entry-level questions. As noted earlier, I am new to DWTs.

Alex

Thomas A. Rowe said:
If using the FP Include Page component, all links to the page to be included must be relative,
and if you want FP to manage any of the link on the pages being included, they must be also be
relative.

Examples

href ="../pagename.htm"

or

href ="../foldername/pagename.htm"

or

href ="pagename.htm"

or

href ="foldername/pagename.htm"

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

Alex said:
Ron,

I think you hit it. I tend to use a lot of "include" pages (for headers, nav bars, etc.) to keep
the DWT itself simple. I will try using absolute or root-relative links.

Thanks,

Alex

I have my DWTs in their own folder, use graphics and FrontPage include files
in the DWT, and have never seen that problem.
However, if you are using ASP or SSI includes, then the path to the include
will not be updated, since it is inside an HTML comment. Similarly, any
links that are made using JavaScript[1] will also not be corrected -
FrontPage does not manage scripted links. In both these cases consider
using absolute links or root relative links instead of relative links.

[1] The exception to this rule is when the JavaScript is inserted as a
result of a FrontPage behaviour - the links are (usually) adjusted in this
case.
--
Ron Symonds
Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

I'm early on the learning curve for using DWTs in FP 2003. To keep the
site
easy to manage, I'd planned to put index.htm and other top-level files in
the root folder of the website, with other stuff in sub-folders. It seemed
logical to me that the Dynamic Web Templates for the site should be in
their
own folder as well. Yet when I attempted to build the site this way,
several
pages were "broken" -- a graphic in the header would not show up in the
published pages, for example, or an "include" page would not work. After I
moved the DWT files to the top or root level of the web, everything worked
fine.

Am I missing something, or does FP 2003 not "like" having DWTs anywhere
but
in the root folder of the website?

Alex
 
R

Ronx

In the scenarios you have described there should not be any problems with
relative links - my site uses this method. FrontPage include files, and the
links in them, are correctly managed by FrontPage no matter where the
includes, files they are included in, or DWTs are located (as long as they
are all in the same website or same subweb). In my case, the include files
are in the \_borders, images in \images, the DWTs in \dwt folder, and the
includes have nested includes from the \menuincs folder. The pages using
the DWT are in several levels of folders, including the root.
With FrontPage includes, you should not use absolute or root-relative links.

Can you give a link to an offending page?
--
Ron Symonds
Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

Alex said:
Thomas,

I used the Web Component | Included Page option, and navigated to the
appropriate file (e.g. header_nav.htm) via the browse option offered by FP
03. I tried this with the DWT files in a subfolder (with brilliant
imagination, I named this folder \dwt) and with the include pages in that
folder as well. The result looked fine on my PC, but when published, the
included page with the header graphic did not show up -- just an empty box.

I believe my next try was with the DWT files in their own folder, and the
include pages in the root, and my recollection is that this did not work
either.

When I moved the DWT files to the root, along with everything else, it
worked fine. Not as tidy, but functional.

Did FP have a problem because both the DWT and include files were together
in one folder, but the pages to which the DWT files were applied were in
another? Did the same-folder location of the DWTs and "includes" mean there
was insufficient information in the relative links for use of the DWTs on
files away from that location?

Sorry for the entry-level questions. As noted earlier, I am new to DWTs.

Alex

Thomas A. Rowe said:
If using the FP Include Page component, all links to the page to be
included must be relative, and if you want FP to manage any of the link on
the pages being included, they must be also be relative.

Examples

href ="../pagename.htm"

or

href ="../foldername/pagename.htm"

or

href ="pagename.htm"

or

href ="foldername/pagename.htm"

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

Alex said:
Ron,

I think you hit it. I tend to use a lot of "include" pages (for headers,
nav bars, etc.) to keep the DWT itself simple. I will try using absolute
or root-relative links.

Thanks,

Alex

I have my DWTs in their own folder, use graphics and FrontPage include
files
in the DWT, and have never seen that problem.
However, if you are using ASP or SSI includes, then the path to the
include
will not be updated, since it is inside an HTML comment. Similarly, any
links that are made using JavaScript[1] will also not be corrected -
FrontPage does not manage scripted links. In both these cases consider
using absolute links or root relative links instead of relative links.

[1] The exception to this rule is when the JavaScript is inserted as a
result of a FrontPage behaviour - the links are (usually) adjusted in
this
case.
--
Ron Symonds
Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

I'm early on the learning curve for using DWTs in FP 2003. To keep the
site
easy to manage, I'd planned to put index.htm and other top-level files
in
the root folder of the website, with other stuff in sub-folders. It
seemed
logical to me that the Dynamic Web Templates for the site should be in
their
own folder as well. Yet when I attempted to build the site this way,
several
pages were "broken" -- a graphic in the header would not show up in the
published pages, for example, or an "include" page would not work.
After I
moved the DWT files to the top or root level of the web, everything
worked
fine.

Am I missing something, or does FP 2003 not "like" having DWTs anywhere
but
in the root folder of the website?

Alex
 
A

Alex

Insert | Picture | From File ... etc.

How did you create the link to the header graphic in header_nav.htm page?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

Alex said:
Thomas,

I used the Web Component | Included Page option, and navigated to the
appropriate file (e.g. header_nav.htm) via the browse option offered by
FP 03. I tried this with the DWT files in a subfolder (with brilliant
imagination, I named this folder \dwt) and with the include pages in that
folder as well. The result looked fine on my PC, but when published, the
included page with the header graphic did not show up -- just an empty
box.

I believe my next try was with the DWT files in their own folder, and the
include pages in the root, and my recollection is that this did not work
either.

When I moved the DWT files to the root, along with everything else, it
worked fine. Not as tidy, but functional.

Did FP have a problem because both the DWT and include files were
together in one folder, but the pages to which the DWT files were applied
were in another? Did the same-folder location of the DWTs and "includes"
mean there was insufficient information in the relative links for use of
the DWTs on files away from that location?

Sorry for the entry-level questions. As noted earlier, I am new to DWTs.

Alex

Thomas A. Rowe said:
If using the FP Include Page component, all links to the page to be
included must be relative, and if you want FP to manage any of the link
on the pages being included, they must be also be relative.

Examples

href ="../pagename.htm"

or

href ="../foldername/pagename.htm"

or

href ="pagename.htm"

or

href ="foldername/pagename.htm"

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

Ron,

I think you hit it. I tend to use a lot of "include" pages (for
headers, nav bars, etc.) to keep the DWT itself simple. I will try
using absolute or root-relative links.

Thanks,

Alex

I have my DWTs in their own folder, use graphics and FrontPage include
files
in the DWT, and have never seen that problem.
However, if you are using ASP or SSI includes, then the path to the
include
will not be updated, since it is inside an HTML comment. Similarly,
any
links that are made using JavaScript[1] will also not be corrected -
FrontPage does not manage scripted links. In both these cases
consider
using absolute links or root relative links instead of relative links.

[1] The exception to this rule is when the JavaScript is inserted as a
result of a FrontPage behaviour - the links are (usually) adjusted in
this
case.
--
Ron Symonds
Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

I'm early on the learning curve for using DWTs in FP 2003. To keep
the
site
easy to manage, I'd planned to put index.htm and other top-level
files in
the root folder of the website, with other stuff in sub-folders. It
seemed
logical to me that the Dynamic Web Templates for the site should be
in
their
own folder as well. Yet when I attempted to build the site this way,
several
pages were "broken" -- a graphic in the header would not show up in
the
published pages, for example, or an "include" page would not work.
After I
moved the DWT files to the top or root level of the web, everything
worked
fine.

Am I missing something, or does FP 2003 not "like" having DWTs
anywhere
but
in the root folder of the website?

Alex
 
A

Alex

Ron,

Thanks. From what you and Thomas have said, I'm beginning to think I may
have simply made a mistake when I created the DWT or include pages.

I can't provide a link to the problem pages because, after moving everything
to the root folder, the site is working fine. My question was aimed at
educating myself so I don't mess up next time. From what you and Thomas have
said, I think I was on the right path in terms of folder usage, I just made
some blunder. If I have trouble with my next project, after exercising great
care, I'll leave the "broken" pages online and holler for help.

Alex


Ronx said:
In the scenarios you have described there should not be any problems with
relative links - my site uses this method. FrontPage include files, and
the
links in them, are correctly managed by FrontPage no matter where the
includes, files they are included in, or DWTs are located (as long as they
are all in the same website or same subweb). In my case, the include
files
are in the \_borders, images in \images, the DWTs in \dwt folder, and the
includes have nested includes from the \menuincs folder. The pages using
the DWT are in several levels of folders, including the root.
With FrontPage includes, you should not use absolute or root-relative
links.

Can you give a link to an offending page?
--
Ron Symonds
Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

Alex said:
Thomas,

I used the Web Component | Included Page option, and navigated to the
appropriate file (e.g. header_nav.htm) via the browse option offered by
FP
03. I tried this with the DWT files in a subfolder (with brilliant
imagination, I named this folder \dwt) and with the include pages in that
folder as well. The result looked fine on my PC, but when published, the
included page with the header graphic did not show up -- just an empty box.

I believe my next try was with the DWT files in their own folder, and the
include pages in the root, and my recollection is that this did not work
either.

When I moved the DWT files to the root, along with everything else, it
worked fine. Not as tidy, but functional.

Did FP have a problem because both the DWT and include files were
together
in one folder, but the pages to which the DWT files were applied were in
another? Did the same-folder location of the DWTs and "includes" mean there
was insufficient information in the relative links for use of the DWTs on
files away from that location?

Sorry for the entry-level questions. As noted earlier, I am new to DWTs.

Alex

Thomas A. Rowe said:
If using the FP Include Page component, all links to the page to be
included must be relative, and if you want FP to manage any of the link on
the pages being included, they must be also be relative.

Examples

href ="../pagename.htm"

or

href ="../foldername/pagename.htm"

or

href ="pagename.htm"

or

href ="foldername/pagename.htm"

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

Ron,

I think you hit it. I tend to use a lot of "include" pages (for headers,
nav bars, etc.) to keep the DWT itself simple. I will try using absolute
or root-relative links.

Thanks,

Alex

I have my DWTs in their own folder, use graphics and FrontPage include
files
in the DWT, and have never seen that problem.
However, if you are using ASP or SSI includes, then the path to the
include
will not be updated, since it is inside an HTML comment. Similarly, any
links that are made using JavaScript[1] will also not be corrected -
FrontPage does not manage scripted links. In both these cases consider
using absolute links or root relative links instead of relative
links.

[1] The exception to this rule is when the JavaScript is inserted as
a
result of a FrontPage behaviour - the links are (usually) adjusted in
this
case.
--
Ron Symonds
Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

I'm early on the learning curve for using DWTs in FP 2003. To keep the
site
easy to manage, I'd planned to put index.htm and other top-level files
in
the root folder of the website, with other stuff in sub-folders. It
seemed
logical to me that the Dynamic Web Templates for the site should be in
their
own folder as well. Yet when I attempted to build the site this way,
several
pages were "broken" -- a graphic in the header would not show up in the
published pages, for example, or an "include" page would not work.
After I
moved the DWT files to the top or root level of the web, everything
worked
fine.

Am I missing something, or does FP 2003 not "like" having DWTs anywhere
but
in the root folder of the website?

Alex
 
T

Thomas A. Rowe

Ok, but was the location within the current open web or some place on your desktop (HD) outside of
the web?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

Alex said:
Insert | Picture | From File ... etc.

Thomas A. Rowe said:
How did you create the link to the header graphic in header_nav.htm page?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

Alex said:
Thomas,

I used the Web Component | Included Page option, and navigated to the appropriate file (e.g.
header_nav.htm) via the browse option offered by FP 03. I tried this with the DWT files in a
subfolder (with brilliant imagination, I named this folder \dwt) and with the include pages in
that folder as well. The result looked fine on my PC, but when published, the included page with
the header graphic did not show up -- just an empty box.

I believe my next try was with the DWT files in their own folder, and the include pages in the
root, and my recollection is that this did not work either.

When I moved the DWT files to the root, along with everything else, it worked fine. Not as tidy,
but functional.

Did FP have a problem because both the DWT and include files were together in one folder, but
the pages to which the DWT files were applied were in another? Did the same-folder location of
the DWTs and "includes" mean there was insufficient information in the relative links for use of
the DWTs on files away from that location?

Sorry for the entry-level questions. As noted earlier, I am new to DWTs.

Alex

If using the FP Include Page component, all links to the page to be included must be relative,
and if you want FP to manage any of the link on the pages being included, they must be also be
relative.

Examples

href ="../pagename.htm"

or

href ="../foldername/pagename.htm"

or

href ="pagename.htm"

or

href ="foldername/pagename.htm"

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

Ron,

I think you hit it. I tend to use a lot of "include" pages (for headers, nav bars, etc.) to
keep the DWT itself simple. I will try using absolute or root-relative links.

Thanks,

Alex

I have my DWTs in their own folder, use graphics and FrontPage include files
in the DWT, and have never seen that problem.
However, if you are using ASP or SSI includes, then the path to the include
will not be updated, since it is inside an HTML comment. Similarly, any
links that are made using JavaScript[1] will also not be corrected -
FrontPage does not manage scripted links. In both these cases consider
using absolute links or root relative links instead of relative links.

[1] The exception to this rule is when the JavaScript is inserted as a
result of a FrontPage behaviour - the links are (usually) adjusted in this
case.
--
Ron Symonds
Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

I'm early on the learning curve for using DWTs in FP 2003. To keep the
site
easy to manage, I'd planned to put index.htm and other top-level files in
the root folder of the website, with other stuff in sub-folders. It seemed
logical to me that the Dynamic Web Templates for the site should be in
their
own folder as well. Yet when I attempted to build the site this way,
several
pages were "broken" -- a graphic in the header would not show up in the
published pages, for example, or an "include" page would not work. After I
moved the DWT files to the top or root level of the web, everything worked
fine.

Am I missing something, or does FP 2003 not "like" having DWTs anywhere
but
in the root folder of the website?

Alex
 
A

Alex

It was within the web (on my hard drive, because the site had not yet been
published, but within the web structure -- i.e., \My Webs\Sitename\

Thomas A. Rowe said:
Ok, but was the location within the current open web or some place on your
desktop (HD) outside of the web?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

Alex said:
Insert | Picture | From File ... etc.

How did you create the link to the header graphic in header_nav.htm
page?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

Thomas,

I used the Web Component | Included Page option, and navigated to the
appropriate file (e.g. header_nav.htm) via the browse option offered by
FP 03. I tried this with the DWT files in a subfolder (with brilliant
imagination, I named this folder \dwt) and with the include pages in
that folder as well. The result looked fine on my PC, but when
published, the included page with the header graphic did not show up --
just an empty box.

I believe my next try was with the DWT files in their own folder, and
the include pages in the root, and my recollection is that this did not
work either.

When I moved the DWT files to the root, along with everything else, it
worked fine. Not as tidy, but functional.

Did FP have a problem because both the DWT and include files were
together in one folder, but the pages to which the DWT files were
applied were in another? Did the same-folder location of the DWTs and
"includes" mean there was insufficient information in the relative
links for use of the DWTs on files away from that location?

Sorry for the entry-level questions. As noted earlier, I am new to
DWTs.

Alex

If using the FP Include Page component, all links to the page to be
included must be relative, and if you want FP to manage any of the
link on the pages being included, they must be also be relative.

Examples

href ="../pagename.htm"

or

href ="../foldername/pagename.htm"

or

href ="pagename.htm"

or

href ="foldername/pagename.htm"

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

Ron,

I think you hit it. I tend to use a lot of "include" pages (for
headers, nav bars, etc.) to keep the DWT itself simple. I will try
using absolute or root-relative links.

Thanks,

Alex

I have my DWTs in their own folder, use graphics and FrontPage
include files
in the DWT, and have never seen that problem.
However, if you are using ASP or SSI includes, then the path to the
include
will not be updated, since it is inside an HTML comment. Similarly,
any
links that are made using JavaScript[1] will also not be corrected -
FrontPage does not manage scripted links. In both these cases
consider
using absolute links or root relative links instead of relative
links.

[1] The exception to this rule is when the JavaScript is inserted as
a
result of a FrontPage behaviour - the links are (usually) adjusted
in this
case.
--
Ron Symonds
Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

I'm early on the learning curve for using DWTs in FP 2003. To keep
the
site
easy to manage, I'd planned to put index.htm and other top-level
files in
the root folder of the website, with other stuff in sub-folders. It
seemed
logical to me that the Dynamic Web Templates for the site should be
in
their
own folder as well. Yet when I attempted to build the site this
way,
several
pages were "broken" -- a graphic in the header would not show up in
the
published pages, for example, or an "include" page would not work.
After I
moved the DWT files to the top or root level of the web, everything
worked
fine.

Am I missing something, or does FP 2003 not "like" having DWTs
anywhere
but
in the root folder of the website?

Alex
 

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