Skip to main content
michaelc43826729
Participant
November 14, 2018
Answered

File paths in templates

  • November 14, 2018
  • 3 replies
  • 386 views

Hi

I am new to Dreamweaver so please excuse silly questions.

I have a template which works and I am happy with it but when I open new HTML document based on this template Dreamweaver changes the file path names.

eg in the .DWT file i reference a file as "../pages/photocomp.htm" but in the new HTML file this becomes the full path on my local computer ie "file:///macintosh/users/mike/websites/...etc

It seems i cannot publish such a file as it the remote server would not fine the files.

What am I doing wrong?

Many thanks

Mike

    This topic has been closed for replies.
    Correct answer Jon Fritz

    Until a new document is saved to a Defined Site within DW, and can update the path based on your site settings (root or document relative), links in a Child page of a Template will use absolute paths.

    Have you saved the Child page to your site yet?

    3 replies

    Nancy OShea
    Community Expert
    Community Expert
    November 27, 2018

    That's normal.    DW doesn't know what the correct path should be until you Save and name your new page.

    Nancy O'Shea— Product User & Community Expert
    Jon Fritz
    Community Expert
    Jon FritzCommunity ExpertCorrect answer
    Community Expert
    November 27, 2018

    Until a new document is saved to a Defined Site within DW, and can update the path based on your site settings (root or document relative), links in a Child page of a Template will use absolute paths.

    Have you saved the Child page to your site yet?

    Sheena Kaul
    Community Manager
    Community Manager
    November 27, 2018