| Alter Default Document Templates |
| Standards change, personal preferences vary, and sometimes we just get plain lazy. Luckily, those kind Macromedia developers have left us a few handy options. Let's pull up our new document directory at: |
| ../Dreamweaver Intallation Folder/Configuration/DocumentTypes/NewDocuments/ |
| Here you'll find all the basic document templates for Dreamweaver-initiated files. All you'll have to do is open the appropriate filetype document and edit the template to suit your needs. For this example, let's pretend we want to use the same external cascading stylesheet location for every HTML document we make for the foreseeable future. To make this a part of Dreamweaver's natural code, we'll edit the contents of the HTML template, Default.html. It looks like this: |
| |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=">
</head>
<body>
</body>
</html> |
| Simply edit your code as shown below, and save. |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=">
<link href="/stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body>
</body>
</html> |
| |
| |
|