Changing the Default Template for a New ColdFusion Page in Dreamweaver MX!

I'm a huge CF newbie so this may be far too obvious for the veterans out there. But this little trick made my life a little easier (and my code a little better because it included comments!).

If you have looked at any Dreamweaver books, you'll almost always see that the code examples have a pretty standard set of comments at the top of every file. These usually include the Author, File Name, Description and Date. It would be nice if these were inserted for you automatically each time you create a new CFM file. Now you can do just that! It's easy.
  1. Open Dreamweaver MX (DWMX).
  2. Click on "File" > "Open"
  3. Then browse to the location of your DWMX installation and find the New Documents folder. Select the Default.cfm file and open it in DWMX. A typical path to this file might be: C:\Program Files\Macromedia\Dreamweaver MX\Configuration\DocumentTypes\NewDocuments\Default.cfm
  4. At the very top of this file, add a set of empty comments. For example:
  5. Save the file and you are done.
What could be easier? Now begin a new CFM file and you will see that you have an empty set of comment tags ready to be filled out. Granted, this isn't rocket science but it does make for less typing and it helps you get into the good habit of commenting your code.

Hope this helped at least one person!
About This Tutorial
Author: Eric G. Myers
Skill Level: Beginner 
 
 
 
Platforms Tested: CF5
Total Views: 33,519
Submission Date: October 16, 2002
Last Update Date: June 05, 2009
All Tutorials By This Autor: 1
Discuss This Tutorial
  • This is really good.

  • That was very helpful! Thanks!

  • Wow that is great`-` thanks

Advertisement

Sponsored By...
Powered By...