Macromedia Dreamweaver 8 Advanced for Windows and Macintosh:
Visual QuickPro Guide
by Lucinda Dykes
Excerpted from “Macromedia Dreamweaver 8 Advanced for Windows and Macintosh: Visual QuickPro Guide”
by Lucinda Dykes © 2005. Used with the permission of Peachpit. To purchase this book, please visit www.peachpit.com.
by Lucinda Dykes
You’ve decided to set up shop on the Web and have a site design in mind. But where do you start? After you have chosen a web server and an application server, the next step is to set up a Dreamweaver® 8 site. You don’t have to set up a site to create and edit web pages, particularly if you want to create and edit static pages, in which the content doesn’t change very often. But if you want to create and test web applications, which contain dynamic content, you’ll need a Dreamweaver site.
Having a Dreamweaver site provides another important advantage: You’ll be able to access Dreamweaver’s site-management features, which can save you time on tasks such as maintaining links, managing and synchronizing files, keeping track of extra information about the files, and creating site reports.
In this tutorial, you’ll learn how to create and configure a Dreamweaver site for dynamic content, a process that includes specifying a root folder for your web application, defining a remote folder, designating a testing server, and setting a URL prefix. You’ll also learn about individual site-management features and how to enable them.
Nearly all the steps you take to set up your Dreamweaver site involve working with the Site Definition dialog. When the dialog box first appears onscreen, the Advanced tab is selected by default (Figure 1). The Advanced tab gives you direct access to your site-definition settings and includes a few additional options for defining dynamic sites.
If you are defining a dynamic site, you will need to configure your site on the Local Info, Remote Info, and Testing Server panes on the Advanced tab of the Site Definition dialog. You also need to specify a root folder on the computer running the web server and specify a URL prefix. If you are defining a static site, you can do that either via the Site Definition wizard or by entering your site information on the Local Info pane on the Advanced tab. And if you want to upload and download your static-site files to a web server using Dreamweaver, you will also need to add remote-access information via the Site Definition wizard or the Remote Info pane on the Advanced tab.
The following sections of this tutorial walk you through the process of configuring the Local Info, Remote Info, and Testing Server panes. As you configure them, you’ll have the option of enabling certain site-management features. You can also enable these and other site-management features after you’ve set up your site.
As an experienced Dreamweaver user, you undoubtedly know that before you create a Dreamweaver site, you must first gather all the site files into a folder. You can choose to have other folders within this main site folder, such as a folder for image files, a folder for CSS files, and so forth.
Tip: The Basic tab in the Site Definition dialog is used to access Dreamweaver’s Site Definition wizard, which guides users step-by-step through the site-setup process. The Site Definition wizard is very useful for novice Dreamweaver users who are setting up static Dreamweaver sites and those who are setting up dynamic sites in which the testing server and the production server are the same. For more details on basic site setup using the Site Definition wizard, see the Dreamweaver 8 Visual QuickStart Guide, by Dori Smith (Peachpit Press), and Dreamweaver Help, which you can access by choosing Help > Dreamweaver Help, or pressing F1.
Figure 1: The Advanced tab of the Site Definition dialog box
You can create and edit web pages in Dreamweaver and upload the pages to a web server without defining a Dreamweaver site. You won’t have access to any of Dreamweaver’s site-management features, and you won’t be able to test dynamic web pages in Dreamweaver, but you can create a connection to an FTP or a Remote Development Services (RDS) server to upload and download files. There are two ways to do this.
Figure 2: Select New site from the Site menu.
Figure 3: Click the link to create an FTP or RDS connection.
Figure 4: Use the Configure Server dialog box to set up an FTP or RDS connection without defining a Dreamweaver site.
Figure 5: Create an FTP or RDS connection in the Manage Sites dialog.
No server technology is required to preview static pages in a browser, so you can preview a static page without setting up a Dreamweaver site.
Choose File > Preview in Browser, and select a browser from the browser list. To preview dynamic pages, however, you need to enable dynamic site features by defining a root folder and by specifying local, remote, and testing server information for your site.
Once you have access to a web server, either locally or on a remote computer, you need to designate a root folder for your dynamic site on the computer that runs the web server and then store your site files in this folder. The root folder is created when the web server is installed, and as soon as you put a page in the root folder, you can “serve” it from the root folder. Having your site files in a root folder allows you to test your dynamic pages because it enables the web server to serve any file from this folder in response to an HTTP request from a browser. Most local web servers have a default root folder, as shown in the following table:
| Default root folders | |
|---|---|
| Web server | Default root folder |
| IIS | Inetpub/wwwroot |
| ColdFusion MX7 | CFusionMX7/wwwroot |
| Apache (Windows) | /apache/htdocs |
| Apache (Mac) | Users: YourUserName: Sites |
If you are using a web server on a remote computer, check with your ISP or web host for the location of the root folder.
If you’re using a local web server, you can use localhost instead of a domain name to access your page. For example, to access your test file (testing.html), you would use one of the following URLs, depending on your server type:
In addition to creating a root folder on the web server, you must specify a local folder for your site. The local folder is the working folder for your Dreamweaver site and usually contains all the site files. Specifying the local information for your site also enables two Dreamweaver site-management features: link checking and site-cache building.
You define your site on the Local Info pane, which is found on the Advanced tab of the Site Definition dialog.
Figure 6: Click the folder icon to browse to the location of the local root folder.
Figure 7: Use the HTTP Address field to enter the URL of your site and enable Dreamweaver to verify site links.