rustedbrandy Posted October 4, 2003 Share Posted October 4, 2003 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 Quote Link to comment https://forums.phpfreaks.com/topic/1110-why-is-dreamweaver-rewriting-our-code/ Share on other sites More sharing options...
Webgeek-024 Posted October 5, 2003 Share Posted October 5, 2003 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? Quote Link to comment https://forums.phpfreaks.com/topic/1110-why-is-dreamweaver-rewriting-our-code/#findComment-3788 Share on other sites More sharing options...
BinaryStar Posted October 11, 2003 Share Posted October 11, 2003 Go into your preferences and there is an option to tell dreamweaver not to re-write any code... Quote Link to comment https://forums.phpfreaks.com/topic/1110-why-is-dreamweaver-rewriting-our-code/#findComment-3886 Share on other sites More sharing options...
BlackDragon10123 Posted November 23, 2003 Share Posted November 23, 2003 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: Quote Link to comment https://forums.phpfreaks.com/topic/1110-why-is-dreamweaver-rewriting-our-code/#findComment-4693 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.