• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Defining the Site

In this task, you will set up the site to use a ColdFusion environment. You already have a local version of this site, but you have not yet set up the remote version of the site, which has to be in a server folder on your hard drive (if you have a local server), a network drive, or even via FTP.

Open Dreamweaver MX 2004 and choose Site > Manage Sites from the main menu. Select the dante site, and click Edit.

You'll add the remote version of the site in the coming steps.

If necessary, click the Advanced tab. Select the Remote Info Category. In the Access drop-down menu, choose Local/Network if your remote site is on your hard drive or on a mapped network drive; choose FTP if you have FTP access to the server.

In this step, you are telling Dreamweaver how you are accessing your remote folder to open and save files.

Choose the appropriate configuration settings for the option you selected in Step 2, using the specific selections below.

If you chose Local/Network as your option and you are working in a Windows environment using a locally running copy of IIS, your remote folder must be in the following location: c:\Inetpub\wwwroot\dante, as shown in the screenshot. Don't forget to create a dante folder in that directory.

If you chose Local/Network as your option and you are working in a networked environment, whether you are a Macintosh or Windows user, your remote folder should be your folder on the network appended by dante, which is the root folder for this site. Simply navigate in Windows Explorer or Macintosh Finder to the network location, and create a new folder called dante in that directory. Then select the dante directory.

If you chose FTP, use the FTP credentials supplied by your network administrator. Since these vary wildly by computer, I can't be any more specific than that.

All users: Leave the remaining options in this category at their defaults.

Select the Testing Server category. Choose ColdFusion as the Server Model. Choose the same Access option you chose in Step 3 (for example, Local/Network or FTP). Enter the same settings you did in the previous step.

In this step, you are telling Dreamweaver which server model you are using (in this case, ColdFusion) and how the server can find your files. Much of this step is a simple repeat of Steps 2 and 3, except for the all-important URL Prefix setting covered in the next step.

Enter the proper URL prefix, following the directions below.

The URL Prefix setting enables you to specify how the browser should access the files as the server processes them. If your pages do not preview correctly when you test them, this setting is the first place you should begin troubleshooting.

If you chose Local/Network as your option and you are working in a Windows environment using IIS, your URL prefix is http://localhost/dante/. The term localhost tells the browser to look on the computer's local server. In other words, it points to the C:\Inetpub\wwwroot directory.

If you chose Local/Network as your option and you are working in a networked environment, specifying the URL prefix can get a little more tricky. Fortunately, your network administrator should be able to tell you what it is. Generally, the URL prefix is http:// + the server name + the path to your root folder. So if I am connected to a server called devserver, and my personal folder is jbardzel, then my URL prefix would be http://devserver/jbardzel/dante/.


Some network administrators configure their servers differently. For example, I have sites on one network server where the URL prefix must be the domain name + port number + the path to my site, for example, http://www.myorganization.com:8008/jbardzel/dante/.

If you specified FTP as your method, your URL prefix is most likely a regular Internet address, possibly with a port number suffix added to the domain, as in http://www.myorganization.com:8008/jbardzel/dante/. If your site doesn't have a registered domain name, because, for example, you are testing over a home network, you can also enter the IP address of the machine with the site.

Regardless of how you are connected to your remote site, your network administrator has the information you need to configure the URL prefix correctly.


Do not simply copy the IP address shown in the screenshot; short of an extraordinary coincidence, it won't work.

You can accept all of the default settings in the remaining categories of this dialog and click OK.

Dreamweaver scans the site and builds its cache.

One at a time, in the Files panel, select each HTML file and press F2. When the file name becomes editable, change the extension from .html to .cfm. Press Enter (Windows) or Return (Macintosh) to apply the name change. Each time the Update Files dialog appears, click Update.

In a dynamic site, the file extension is the signal the server uses to recognize that the file contains server code in it. If you leave the extension .html, then the ColdFusion code won't get processed and the file sent back to the user will not be readable to their browser.

When you change a file's extension, all the links that point to it are broken. Fortunately, Dreamweaver catches this problem; the Update Files dialog presents a list of all the files that link to the original name and offers you the choice to have Dreamweaver automatically update the links in these files to the new name. In all cases, you want Dreamweaver to update the files, so choose Update. Two of the files, dante_quiz_ questions and dante_quiz_results are not yet linked to any of the pages in the site, so this dialog does not appear for them.

When you are finished, none of the files in the site should have the .html extension.


At some point (but not necessarily right away), Dreamweaver rediscovers that you've made changes to the file names, and asks if you want to update the template files as well. Click OK to accept this option.

In the Files panel, click the root folder, called Site – dante ([local root folder]). Click the Put File(s) button (upward-pointing blue arrow button). In the dialog that asks if you want to Put the entire site, click OK.

This transfers the entire site to the remote folder. Your site is configured and you are ready to start building dynamic ColdFusion pages.



Not a subscriber?

Start A Free Trial

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint