• 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 will define a local version of the site, which can be anywhere on your hard drive, and a remote version of the site, which has to be in a server folder, on your hard drive, a network drive, or even via FTP.

1.
Copy the entire elearning folder inside Lesson 12's folder on the CD to your hard drive.

This version of the site, which I have already begun for you, will be your local folder. It does not need to be in a server directory. Don't forget where it is, though, because you will need to point to it when you define the site in Dreamweaver.

2.
Open Dreamweaver MX and choose Site > New Site from the main menu. Once in the Site Definition dialog, click the Advanced tab.

When defining dynamic sites, I prefer to use the advanced environment because it provides more options and is easier to move back and forth among the many settings, in case you make any mistakes.

3.
Name the site elearning. For the Local Root Folder, navigate to the folder you just copied from the CD-ROM. Optional: Navigate to the images folder inside the elearning folder to designate it as the Default Images folder. Leave the HTTP Address at its default and make sure the Cache is checked.

This step should be familiar: You are defining the local site. There is nothing in this step that is special for ColdFusion or any other server technology.

4.
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; choose None if you are on a standalone Macintosh.

In this step, you are telling Dreamweaver how you are accessing your remote folder. A different tab enables you to configure how the server will see your folder; here, you are only telling Dreamweaver how you access the folder.

5.
Choose the appropriate configuration settings for the option you selected in step 4, using the specific selections below.

If you chose Local/Network as your option and you are working in a Windows environment using PWS or IIS, then your remote folder must be in the following location: c:\Inetpub\wwwroot\elearning, as shown in the screenshot. Don't forget to create an elearning 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, then your remote folder should be your folder on the network appended by elearning, 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 elearning in that directory. Then select the elearning 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.

6.
Select the Testing Server category. Choose ColdFusion as the Server Model. Choose Dreamweaver MX Pages Only. Choose the same Access option you chose in Step 4 (e.g., Local/Network or FTP). Enter the same settings below that you did in the previous step.

In this step, you are telling Dreamweaver which server model you are using and how the server can find your files. This step is a simple repeat of steps 4 and 5, except for the all-important URL Prefix setting covered in the next step.

7.
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 PWS or IIS, then your URL prefix must be http://localhost/elearning/. The term localhost tells the browser to look on the computer's local server. In other words, it points unerringly 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. Generally, the URL prefix is the drive letter + the server name + the path to your root folder. So, if I am connected to a server called complit via my T: drive, and my own personal folder is jbardzel, then my URL prefix would be T:/complit/jbardzel/elearning/. Windows users can find out the name of the server by opening the drive (such as the T: drive) in Windows Explorer: The drive name appears in the upper-left corner.

NOTE

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.mycollege.edu:8008/jbardzel/elearning/.

If you specified FTP as your method, then your URL prefix is most likely a regular Internet address, possibly with a port number suffix added to the domain, as in http://www.mycollege.edu:8008/jbardzel/elearning/.

Regardless of how you are connected to your remote site, your network administrator has the information you need to configure the URL prefix correctly. And unless you do, you might as well be on a standalone without a server.

On the bright side, the URL prefix has no effect on the site itself—only on your ability to preview it during development.

8.
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. Your site is configured and you are ready to start building dynamic ColdFusion pages.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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