DWTs are intended to be used in Webs, not stand alone pages
And all FP pages show a file based path until they are saved at least once in the currently open FP web
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________
|I will try your suggestion. However, doesn't that defeat the purpose of using
| DWTs? There must be a setting in FP that controls whether absolute or
| relative file naming is used. It is baffling . . . .
|
| "Stefan B Rusynko" wrote:
|
| > Did you Open a new FP web, not just a page,
| > and the save the new page in the new web after opening it,
| > but before applying the DWT
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| >
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > |I (re)checked the file reference in the DWT and it is "nav/button4.gif". I
| > | tried the suggestions below but when I attach the DWT to a blank web page (it
| > | is a new web site so I do not have any existing pages), it applies the
| > | complete pathname to each file reference. For instance, the DWT has the
| > | following line
| > |
| > | <body onload="FP_preloadImgs(/*url*/'nav/button4.gif', (and so on . . .)
| > |
| > | however when I attach the DWT to the blank web page, the same line becomes:
| > |
| > | <body
| > | onload="FP_preloadImgs(/*url*/'file:///D:/orig_c/My%20Webs/hoa1/nav/button4.gif', (and so on. . .)
| > |
| > | This occurs to all file references applied by the DWT file.
| > |
| > |
| > | "Thomas A. Rowe" wrote:
| > |
| > | > FP doesn't use/work with "/nav/button4.gif".
| > | >
| > | > The relative reference would have to be written as one of the following:
| > | >
| > | > "nav/button4.gif"
| > | >
| > | > or
| > | >
| > | > "../nav/button4.gif"
| > | >
| > | > And you can not change any code generated and maintained by FP, and then re-open the page in FP.
| > | >
| > | > --
| > | > ==============================================
| > | > 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.
| > | > ==============================================
| > | >
| > | > | > | > > In Frontpage 2003, I set up a DWT with relative file references, i.e.
| > | > > /nav/button4.gif. However, when I apply the DWT to a web page, the file
| > | > > references change to absolute, i.e. c:\mywebs\project\nav\button4.gif on the
| > | > > web page. When I go into the code on the web page, Frontpage says that the
| > | > > changes will not be permanent.
| > | >
| > | >
| > | >
| >
| >
| >