Skip to main content
michaelc43826729
Participant
Nov 14, 2018 6:20 PM UTC
Answered

File paths in templates

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 is closed to new replies. Start a new post to keep the conversation going.
    Jon Fritz
    Jon FritzCorrect answer
    Community Expert
    Nov 27, 2018 1:39 PM UTC

    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
    Nov 27, 2018 8:36 PM UTC

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

    Translate
    Nancy O'Shea— Product User & Community Expert
    Jon Fritz
    Community Expert
    Jon FritzCommunity ExpertCorrect answer
    Community Expert
    Nov 27, 2018 1:39 PM UTC

    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?

    Translate
    Sheena Kaul
    Legend
    Nov 27, 2018 10:43 AM UTC

    Moving to Dreamweaver support forum​

    Translate