Publishing Your Website - Dreamweaver CC - Adobe Creative Cloud Design Tools All-in-One For Dummies (2013)

Adobe Creative Cloud Design Tools All-in-One For Dummies (2013)

Book VI

Dreamweaver CC

Chapter 9: Publishing Your Website

In This Chapter

image Checking for broken links and missing files

image Running your site reports

image Publishing to a web server

image Making site improvements

Nothing is better than posting your site to the world for the first time, and Dreamweaver helps you not only to build great sites, but also to manage and transfer them to their final destinations.

Before you launch your website, you want to take lots of steps to ensure that it looks and works its best. The Dreamweaver validation and reporting tools streamline the process of testing and fixing any problems so that you can present visitors with a favorable first impression.

Clean Up after Yourself!

The first step toward getting your website ready for the world is making sure that everything works as expected. Dreamweaver is packed full of tools that let you know exactly what’s broken and what can be done better and how your site will perform across a spectrum of different browsers.

A key benefit of a Dreamweaver site is its capability to see relationships among various pages and files and detect any broken links or missing images before you publish your website for public viewing. Choose Site⇒Check Links Sitewide to comb your entire site to find broken links or missing or orphaned (unlinked) files.

To use the Check Links Sitewide feature, follow these steps:

1. Choose WindowFiles to open the Files panel.

You can also use the F8 shortcut key (Windows or Mac).

2. Open the Files panel menu (it’s in the upper-right corner) and choose SiteCheck Links Sitewide.

The Link Checker panel appears and displays any results. Each listing shows the broken link and the name of the page that contains it to the left, as shown in Figure 9-1.

image

Figure 9-1: The Link Checker lists the filenames and broken links.

3. To open and edit the page to correct the link, double-click the filename that’s shown.

You can then edit the broken link directly from the Link Checker panel without opening the file. Click the broken link that’s displayed, and a folder icon appears next to it, on the right.

4. Click the folder to open the Select File dialog box and choose an available file to correct the link or relink it to a different file.

5. Click OK (Windows) or Choose (Mac).

imageIf you want to change a link that appears across several pages, open the Files panel menu and choose Site⇒Change Links Sitewide. When the panel appears, you’re asked which file the original link points to, and you can specify a new file to link to instead. Warning: Your answer changes all links to that file sitewide, so don’t use this command if you want to change that link on only certain pages.

Running Site Reports

The Dreamweaver site reports provide a detailed look at potential issues lurking within your site as well as assistance in cleaning out redundant or empty tags from your pages.

Reports are in two categories:

check Workflow: Shows you currently checked out files, which ones have been recently modified, and any design notes you’ve attached to individual files. This report is useful if you make heavy use of the Check In/Check Out feature in the Files panel.

check HTML: Points out design and accessibility issues, such as missing ALT tags for images, improperly nested tags, empty tags, or pages that are missing titles that you can clean up.

You can run a site report by following these steps:

1. Choose SiteReports.

The Reports dialog box appears, as shown in Figure 9-2.

image

Figure 9-2: Use the Reports dialog box to choose reports you want to run.

2. Choose each report you want to see by selecting the check box next to the report name.

As shown in Figure 9-2, we chose all the reports in the HTML Reports category.

3. At the top of the Reports dialog box, use the drop-down list to select what aspect of the website you would like to run the reports on.

You can choose the Current Document, Entire Current Local Site, Selected Files in Site, or a specific folder of your choice. If you are unsure, choose the Entire Current Local Site option.

4. Click the Run button to run the selected reports.

The Results panel appears and displays the results of each report.

Each report result displays the file and line number and a description of the problem.

5. To address a problem that’s shown, double-click the filename to open the page.

The page opens for editing, and the section in which the problem occurs appears highlighted in Split view.

Getting Connected

When you’re ready to publish your site for the world to see, set up a remote server in your site definition so that you can connect and copy files to your web-hosting account or dedicated server.

Typical remote server information consists of an ID and a password, an FTP (File Transfer Protocol) or network address, and the name of the specific directory where your files need to go. This information is available from the company your hosting account was purchased from or from your network administrator.

To set up a remote connection, follow these steps:

1. Choose SiteManage Sites.

The Manage Sites panel appears.

2. Select your site from the list and click the Edit button, which appears as a pencil icon below the list.

3. When the Site Setup dialog box appears, select the Servers category on the left.

Here you can add connection information to a web server where you can store and publish your website.

imageThe term servers typically refers to a web-hosting account: space on a server purchased from a web-hosting provider. Your web-hosting account is essentially a folder on a remote computer, where you can store your files and point your users so they can view your site from any computer or device. There are tons of hosting providers (such as GoDaddy, FatCow, 1 and 1) from which you can purchase these services.

4. Below the listing of servers (which is likely empty right now), click the Add New Server button (plus sign).

This step opens a dialog box where you can enter your connection information.

5. Enter a name for your connection in the Server Name text box.

6. From the Connect Using drop-down list, select the type of connection you’re going to create.

In most cases, this is FTP, but check with your IT administrator if you’re unsure. If you’re connecting to a web-hosting account, FTP is the most common way in which you’ll connect.

7. Enter your FTP address, Username, and Password in their respective text fields (as shown in Figure 9-3).

This information is provided to you when you set up a web hosting account. If you are unsure of this information, contact your web hosting provider or IT administrator.

8. Enter your root directory in the appropriate text field.

This is the name or location of the folder where your website files will be kept on the remote server. If you are unsure of this information, leave it blank.

9. Enter your web URL in the text field shown.

This is the actual web address where users will find your website (for example, http://www.mycoolwebsite.com).

image

Figure 9-3: Enter your connection information when adding a new server.

10. Click the Test button to test your connection.

If the connection is made successfully, Dreamweaver will let you know. If not, you may need to double-check the information you entered and try again.

imageIf you experience difficulty connecting to your remote server or the connection is taking unusually long, select the Use Passive FTP check box under the More Options section at the bottom. (You need to expand this by clicking the arrow next to More Options.) Passive FTP can also be a workaround if you’re trying to connect from behind a firewall.

11. If your settings are correct, click Save to create the Server connection.

12. Click Save again to exit the Site Setup dialog box.

Your website — live!

After your connection is up and running, you’re ready to upload files and present your website to the world. You can transfer files to and from your remote web server by using the built-in FTP functionality of the Files panel. It displays files in your local directory and the remote server, and between them, you can put, get, or synchronize site files.

Follow these steps to upload your website to a remote web server:

1. Choose WindowFiles to open the Files panel.

image 2. Click the Expand to Show Local and Remote Sites icon.

The panel expands so that you see both the local site and the remote site to which you want to copy (upload) the files.

3. Make sure that the correct site definition is selected in the Show drop-down list in the upper-left corner of the panel.

Your local files appear on the right.

4. To connect to and display files on the remote web server, click the Connect button at the top of the panel.

When the connection is made, all files (if any) are displayed on the left side of the panel.

5. To copy files, select and drag them from the local files on the right to the remote files on the left, or use the Put button, as shown in Figure 9-4.

Alternatively, select the files you want to copy on the right and click the Put button at the top of the Files panel.

imageYou can put all the files within your site on your web server at once by selecting the root folder at the top of the local files panel and clicking the Put button.

6. After you copy all files to the remote web server, test your site by opening a browser and typing the website’s URL.

The URL is a full address, such as www.example.com, or an IP address, such as http://192.1.1.1.

If you notice broken images or files, return to Dreamweaver to double-check whether all files were copied to the server and then run the Link Checker by choosing Site⇒Check Links Sitewide.

image

Figure 9-4: Drag and drop or put files from your local machine on your web server to copy and update them.

To retrieve files from a remote web server, follow these steps:

1. Select the files you want to retrieve from the remote files on the left side of the Files panel.

2. Click the Get button (which appears as a green, downward-pointing arrow) at the top of the panel or drag the files to the local root folder on the right.

image To return the Files panel to its original position on the right side of the workspace, click the Collapse button (the Expand button, in the selected state) at the top of the panel to deselect it. The Files panel minimizes and docks back with the panel group on the right.

Synchronizing your site

The handy Dreamweaver site synchronization feature compares files between your local and remote sites to ensure that both are using the same, and most recent, versions of your site files. This check is essential if there’s a chance that files on the remote server may be more up-to-date or if you’re unsure which files have been updated since the last time you worked on a website.

Follow these steps to synchronize your local and remote directories:

1. If the Files panel isn’t already visible, choose WindowFiles to open it.

2. Click the Expand button, and then select site you want to synchronize from the Show drop-down list in the upper-left corner of the panel.

Your local files appear on the right.

3. Click the Connect button at the top of the panel to connect to the remote server.

If you’re not viewing your Files panel in Expanded view, select Remote Server from the drop-down list at the top to display your remote files.

4. Click the Synchronize button at the top of the Files panel.

The Synchronize Files dialog box appears.

5. From the Synchronize drop-down list, select whether you want to synchronize the whole local site or only files selected in the Files panel (if any).

6. From the Direction drop-down list, select whether you want newer files put on the remote server, retrieved from the remote sever, or both.

7. To clean up unused or old files on the remote server, select the Delete Remote Files Not on Local Drive check box.

8. Click the Preview button to begin the process.

This step may take a while, depending on the number of files in your site.

The Synchronize Files dialog box appears and displays all changes that will be made between the local and remote folders.

9. Select, change, or delete any actions as necessary.

10. Click OK to have Dreamweaver complete the synchronization process.

imageBe careful when using the Delete Remote Files Not on Local Drive option; some files on the remote server are installed by the web hosting company and are necessary for the operation of your site.

Improving Your Site

Remember that a site is like a living organism: It continues to grow and will still need care after it’s live. As you add to your site, find new and innovative ways to present information to site visitors; after all, it’s all about giving them what they came looking for.

To improve your site and keep visitors coming back, try these tips:

check Solicit feedback from focus groups or colleagues in different fields. Let them tell you the best and worst features of your site and then use the feedback to assist in design, layout, and content decisions.

check Use web statistics to your advantage. Use these statistics, often provided for free by web-hosting companies, to see where users are spending the most time and where they leave your site.

check Provide a feedback form. Site visitors can then comment on the service and information they receive, with the opportunity to provide comments and suggestions.

check Always keep your content fresh. Stale information and features can deter return visits and ruin first impressions.

check Respond immediately to problems that surface. Don’t ignore or put off broken links, images, or misspellings.