Jump to content

Why is Dreamweaver rewriting our code?


Recommended Posts

We created page templates for a client who is using Dreamweaver MX to create new pages. We have placed these pages on the server in a \"templates\" directory for him to use. Whenever the client creates a new page by opening the template file, saving it with a new name and then saving it to a new directory, he finds that the includes (which contain the header and footer and other nav info) have been altered. That is, the code itself has been changed by Dreamweaver! So now, rather than looking for includes in the \"includes\" directory, where they exist, the newly created page is now pointing to the \"templates\" directory to find all the includes on the page. So my question is: why in heck is the code *changing* every time a page is saved with a different name?

 

Code written as follows:

 

include(\"header.php\");

 

Upon renaming and saving into a new directory, it changes to:

 

include(\"../..templates/header.php\");

 

We\'ve tried already telling Dreamweaver \"Never rewrite code\" in the preferences. Nothing seems to work. Why is Dreamweaver rewriting our code? And how do we tell it to stop? Any help is much appreciated!

 

Dan and Carlos

Link to comment
Share on other sites

For some reason Dream weaver will do these silly things. If you have not already encountered it, Dreamweaver will rewrite any frame code to include double the frames you had before. I have had to resort to modifying frame files in notepad and uploading them as such. As you have stated I have asked it to stop doing this and it continues.

 

Dreamweaver although a powerful tool is a selectively buggy tool. Have you tried to duplicate the file in a new location and then open it and rename it?

Link to comment
Share on other sites

  • 1 month later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.