View Full Version : Changing path to template in child pages

01-16-2007, 03:50 AM
I inherited a website (my first). The website currently resides on a Windows web server and the site files reside in a folder named 'www'. Of course in DW the file structure reflects that on the web server and all files are in a 'www' folder.

I am moving the website to a web host running Linux and have been told the site files are to be put in a folder named 'httpdocs'.

The site is built on a template but on saving changes to the template the child pages are not automatically updated. I have to do each one manually - Modify/Templates/Update Current Page and that has worked fine in the present setup.

Using vmware (a virtual machine on my PC) I took the site files out of the 'www' folder and put them into a folder named 'httpdocs'. Now when I try to update a child page after making a change to the template DW gives me an error code 3 bad file path and continues to put 'www' in the path before the word 'templates' even though there is no such www folder. I see this in the child page:

<html><!-- InstanceBegin template="/www/templates/xxxx.dwt" codeOutsideHTMLIsLocked="false" -->
<!-- InstanceBeginEditable name="doctitle" -->
<!-- InstanceEndEditable -->

I'm thinking the bad file path error is being caused by the www in the path above.

1. If I was able to change that to /templates/xxx.dwt would that solve the problem?
2. If so, how do I change it because it does not appear in the actual template document and is uneditable in the child pages.

Thanks for any advice.


01-16-2007, 07:07 AM
I renamed the www folder within DW and DW updated the child pages once I had done this. It also changed the path to reflect the new folder name so I see the path to the template in the child pages is named automatically by DW - not something I can change.

Does anyone know how I can get the site files to become independent of the root folder www? I want to be able to upload just the site files to the httpdocs folder on the new web server free of the www folder.


01-16-2007, 02:04 PM
Have you done any changes to your Site Definition at all?

01-19-2007, 10:21 AM
Hi Domedia

I'm not sure the Site Definition would apply in this situation. Yes I have flushed the cache, refreshed the site files etc.

I think the only way to solve this is to detach the pages from the template thereby getting rid of the DW internally written path to the template, eliminating the www folder and applying the template back to the pages, although this is not entirely reliable as far as content goes. I had a play doing this and it worked but it requires a bit of work redoing some of the content.


01-19-2007, 01:33 PM
DW uses the path set in your site definition. If you've changed the name of your folders, your site definitions might be wrong.