Publishing Your Website - Dreamweaver CS6 - Adobe Creative Suite 6 Design and Web Premium All-in-One For Dummies (2012)

Adobe Creative Suite 6 Design and Web Premium All-in-One For Dummies (2012)

Book VI

Dreamweaver CS6

Chapter 9: Publishing Your Website

In This Chapter

check.png Checking for broken links and missing files

check.png Running your site reports

check.png Checking browser compatibility

check.png Publishing to a web server

check.png 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 ability 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.

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

image

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. Double-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).

tip.epsIf 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.png 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.png 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.

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

image

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.

Checking CSS Compatibility

It’s important to make sure that your site appears properly and consistently across all popular browsers, such as Internet Explorer, Firefox, Chrome, and Safari. Although most modern browsers have adopted fairly uniform support for CSS2 (and some CSS3) properties, designers should still test their pages in a variety of browsers and browser versions.

To eliminate this time-consuming task, Dreamweaver provides the Browser Compatibility Check, which works hand in hand with the Adobe website to discover and report any CSS-related display issues that may occur in selected browsers and versions. The Browser Compatibility Check checks CSS compatibility by default in these browsers: Firefox 1-3; Internet Explorer (Windows) 6.0-8.0; Internet Explorer (Macintosh) 5.2; Netscape Navigator 7.0-8.0; Opera 7.0-9.0; and Safari 1.0-3.0.

For any problem that the Browser Compatibility Check discovers, the Results panel displays a description of the problem along with a direct link to the CSS Advisor section of the Adobe website. The CSS Advisor reports on known browser-display issues and possible solutions for fixing them.

Follow these steps to test a page with the Browser Compatibility Check:

1. Open a page for editing by choosing FileOpen or by selecting it from the Files panel.

2. In the Document window (next to the Live Code button), click and hold the Check Browser Compatibility button and then choose Check Browser Compatibility from the menu that appears.

The Results panel appears, with the Browser Compatibility tab forward. Any results are displayed on this tab.

3. To view details and possible solutions for any results that may appear, select the result. (See Figure 9-3.)

Figure 9-3: The Browser Compatibility Check displays any problems.

image

The description, as well as a link to the Adobe website, appears on the right side of the panel.

Possible compatibility issues are listed along with the filename, line number, and description of the problem.

4. Click the link below the detail panel to jump to the Adobe website for solutions.

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.

tip.epsThe 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.

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-4).

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).

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

image

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.

tip.epsIf 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.

2. image 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-5.

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

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

image

tip.epsYou can put all of 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.mywebsite.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.

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.

tip.epsTo return the Files panel to its original position on the right side of the workspace, click the Expand button in the upper right corner 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. Select the 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.png 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.png 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.png 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.png Always keep your content fresh. Stale information and features can deter return visits and ruin first impressions.

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