Jump to content

Archived

This topic is now archived and is closed to further replies.

rustedbrandy

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

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

Go into your preferences and there is an option to tell dreamweaver not to re-write any code...

Share this post


Link to post
Share on other sites
We\'ve tried already telling Dreamweaver \\\"Never rewrite code\\\" in the preferences. Nothing seems to work. Why is Dreamweaver rewriting our code?

 

:twisted: They already did that!! :twisted:

Share this post


Link to post
Share on other sites

×

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.