Working with the Site Window/Panel
The Site window and panel act as the control center for managing your site. If your Site window is not visible, choose Site, Site Files. This launches the Site Files window, also known as the Site window. F8 is the keyboard shortcut to access this window. If you look at Figure 3.15, you'll notice the Site window has a toolbar; each option on the toolbar adds functionality toward managing your site.
Figure 3.15 The Site window's toolbar has options for managing Web site files.
Site Files This button enables you to view the Site window in its default view, which is displaying all the files on the local side and remote side. Remember that the remote files are the files located on your Web server. You will see files on the remote side only if you are connected to the server.
Testing Server The testing server is a way for you to view your files located within the root folder of your testing server. Today the majority of operating systems ship with a built-in Web server. Windows XP Professional ships with Microsoft's IIS, and Mac OS X ships with an Apache Web server. Often, developers will use these local Web servers to test their pages. After they've tested okay, they'll move them to the remote Web server. When the Testing Server option is selected, the local files are still visible on the opposite side.
Site Map To view the site map of your Web site, click this button. Notice that this button offers two choices: You can either view only the map or you can view the map and the local files at the same time. If your site has any size to it, you may want to opt for Map Only. The site map can become large very quickly.
Site The Site drop-down menu is filled with all the different sites that you have defined within Dreamweaver. This affords quick access to any site and lets you move between them with ease. Notice toward the bottom the option of Edit Sites. If you choose Edit Sites, it launches the Edit Sites dialog box.
Connect to Remote Host This button connects to the remote host you specified in the Site Definition dialog box. You must have a connection to the Internet to make a live connection. After you've made a successful connection, the remote side of the Site Files will be populated with all the files on the server. The Connect button also appears to have green circles in it, indicating a connection. When you're connected, the Connect button becomes a Disconnect button.
Refresh What you specified in the Site Definition dialog box determines whether this button has any meaning. If you chose not to have the file list to automatically refresh, you will have to press this button to see the results of any files being moved from the remote side to the local side, or vice versa. Sometimes when you're moving files, you may have to refresh regardless of whether the FTP utility is acting buggy.
Get File(s) The Get button retrieves files from the remote server by downloading them to your computer. There are a couple of ways to get files from the server to the local files, and one is to press this button. You can also drag and drop between the two sides, and you can highlight the file you want to transfer and press Command+Shift+D (Mac) or Ctrl+Shift+D (Windows).
Put File(s) This is the opposite of the Get button. This will allow you to Put, or upload, files during an active session with the remote server. Like its Get counterpart, there are a couple of ways that you can upload files. You can highlight the file on the local side and press the Put button. Drag and drop is also supported when transferring files from the local side to the remote side. Finally, you can highlight the files and use the keyboard shortcuts of Command+Shift+U (Mac) or Ctrl+Shift+U (Windows).
When getting and putting files, an alert message pops up. The dialog box asks if you would like to include all dependent files. Although this may seem obvious, you may not want to include the dependent files. For example, if you uploaded a page and all of its files, you may notice something wrong in the title of the page. You can easily correct that by changing it in Dreamweaver; however, you've changed the HTML only in the document. It would be necessary to upload only the HTML file and not all the images associated with it, because they're already on the server. If you check Don't Ask Again, it will assume you want to upload the dependent files. If you did check this earlier and now decide that you want the alert to appear, you can change that in the Preferences dialog box under the Site category.
Check Out Files/Check In Files The Check In and Check Out buttons are active only when you have check in and check out selected in the Site Definition dialog box. These options let you officially check in and check out files, offering a visual cue to all the development team members that you are working on a particular file or files.
When transferring files, you will receive transfer information via a dialog box on the Mac or a progress bar, both on the Mac and PC. This progress bar indicates how long something will take to upload or download. In the bottom-right corner of the window or panel is a Stop Current Task button. This button enables you to terminate the active task of moving files.