Jump to content


Why is Dreamweaver rewriting our code?

  • Please log in to reply
3 replies to this topic

#1 rustedbrandy

  • New Members
  • Pip
  • Newbie
  • 1 posts
  • LocationChicago

Posted 04 October 2003 - 02:17 AM

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:


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


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

#2 Webgeek-024

  • Members
  • PipPip
  • Member
  • 10 posts

Posted 05 October 2003 - 01:38 PM

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?

#3 BinaryStar

  • Staff Alumni
  • Advanced Member
  • 74 posts
  • LocationBethlehem, PA

Posted 11 October 2003 - 03:16 PM

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

#4 BlackDragon10123

  • Members
  • Pip
  • Newbie
  • 6 posts
  • LocationGlenview, IL 60025

Posted 23 November 2003 - 08:13 PM

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:
www.mystupidcrap.com/scott - my site

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users