Chapter 25

Testing and Publishing Your Web


CONTENTS

It's time to give your Web page that final once-over before you get it out to the Web. You should check your spelling, check your links, check your directories, check everything. Fortunately, FrontPage keeps everything you have to do from start to finish in mind and offers a few tools that can help you, as well!

Links at a Glance

When you develop your pages with other types of editors, sometimes you can't tell, at a glance, if your links are working correctly. With FrontPage, you can tell quite easily from within the FrontPage Explorer. Look in Outline View or Link View, both shown in Figure 25.1, and you'll be able to tell whether the links between pages in your Web site need fixing. When you view your pages in Link View, you can expand the tree by clicking on any page icon that has a plus symbol (+) on it. That symbol tells you there are links to other pages contained in that page.

Figure 25.1 : Use Outline View or Link View to tell at a glance whether links to and from a page are working correctly.

Viewing Links Inside Pages

Links inside pages are links from a page to itself, such as links to bookmarks that appear on the same page. In the example shown in Figure 25.2, the Hyperdocument page contains links to itself, as you can see more clearly in the Link View.

Figure 25.2 : Use View | Links Inside Pages or its toolbar button to view links within a single page.

There are also a couple of broken links, represented by the torn pages, on this page that jump out at you, too. Notice also that some of the outgoing links are represented by arrows and others by circles. The arrows designate links to other pages (either in your web or to other webs). The circles represent links to items included in the current page-usually images or content that appears inside Include bots.

You can view links inside a page by using one of the following methods:

To turn off the display of links inside pages, repeat one of those procedures.

Viewing Links to Images

You can use the FrontPage Explorer's Outline View or Link View to view links to images within your current Web site. Links to images are displayed with an icon of a picture in a frame, as shown in Figure 25.3.

Figure 25.3 : View links to images in your pages by choosing the View | Links to Images command or toolbar button.

To view links to images, use one of the following methods:

To turn off the display of links to images, repeat one of these procedures.

Viewing Repeated Links

You can use the FrontPage Explorer's Outline View or Link View to view repeated links to pages within your current Web site. Sometimes more than one link to the same page appears within your page. For example, you might have ten copies of the same bullet graphic on a page, or, as the example in Figure 25.4 shows, you can have links to your e-mail address in a couple of places on your Web page.

Figure 25.4 : View repeated links from your pages by choosing the View | Repeated Links command or toolbar button.

In most cases, you want to view links only once-but if you need to remove links to a particular page, you might miss the additional links on the page unless you choose this command.

To view repeated links, use one of the following methods:

To turn off the display of links to images, repeat one of those procedures.

Better Check It: Verifying Links

What if you've got hundreds of pages on your site? You don't have to look at them all manually, do you?

Have no fear: There's an easy way to check the links on all those pages. Use the Tools | Verify Links command to both verify and repair internal and external links.

Figure 25.6 : Broken external links are represented by a yellow circle next to a question mark.

Once you establish an online connection, use the following procedure to verify external links:

  1. Choose Tools | Verify Links. External broken links are listed after internal broken links, if any.
  2. Click Verify to identify the broken external links. Each link is verified in sequence. It actually goes quite rapidly. Don't worry, it doesn't load the pages as the links are verified! The process only checks to see that the URLs are valid.
  3. To stop verifying links before the list is complete, click Stop.

Fixing Internal and External Links

You might have some broken links inside your web, such as links you forgot to complete, links to pages you might have deleted from your web, or perhaps even links from pages imported into your web that you forgot to edit. You can easily fix them by using the Tools | Verify Links command in the FrontPage Explorer.

TIP
If you've got lots of broken links to look at, you can sort the list of broken links by one of three categories-Status, URL, or Linked from page. Click the headings above the list of broken links in the Verify Links dialog box

To repair broken internal or external links, follow these steps:

  1. From the FrontPage Explorer, choose Tools | Verify Links. The Verify Links dialog box appears. Internal links are listed first.
  2. Select the broken internal or external link you want to repair.
  3. Click Edit Link. The Edit Link dialog box shown in Figure 25.7 appears.
    Figure 25.7 : Edit the broken link in the Edit Link dialog box. You can repair the link on any or all pages on which it appears.
  4. Enter the correct URL for the link.
  5. Choose one of the following options:
    Change all pages with this link: Choose this option to change the link in all pages on which the broken link appears.
    Select pages to change: Choose this option if you want to repair the broken link in a set of selected pages.
  6. Click OK. The status of the repaired links changes to Edited in the Verify Links dialog box. After you repair your external links, click the Verify button again while you're online, just to make sure you fixed them all correctly.

TIP
Page URLs can change frequently on the Web or become outdated rapidly. If you run the Tools | Verify Links command on a fairly regular basis, you can delete or revise links when necessary and keep all the links in your Web site current

You can also choose to edit the page on which the broken link appears. This doesn't automatically fix the other links on which the same broken link appears, but it does allow you to verify where you wanted that link to go. To edit the page on which the link appears, follow these steps:

  1. From the FrontPage Explorer, choose Tools | Verify Links. The Verify Links dialog box appears.
  2. Select the broken internal or external link you want to repair.
  3. Click Edit Page. The page opens in the FrontPage Editor, and you can repair the link in the page.
  4. Save the revised page to the Web site.

Fixing Page Errors

If a bot is configured incorrectly, or if a page that a bot refers to is moved or deleted from your Web, you'll notice a small red triangle next to the page in the FrontPage Explorer's Outline View. You can determine why the error appears on the page by using the following procedure:

TIP
If you notice these red triangles after you import several pages that you know are linked correctly, choose the View | Refresh command. The error triangle might be there because of the order in which pages were imported to the web. Refreshing the web resolves some of these error messages

  1. From the FrontPage Explorer, select the page that has the error triangle.
  2. Choose Edit | Properties, or right-click and choose Properties from the pop-up menu. The Properties dialog box appears.
  3. Click the Errors tab to see a description of the page error, as shown in Figure 25.8.
    Figure 25.8 : The Properties dialog box tells you why an error message exists on a page.
  4. Click OK to exit the dialog box and return to the FrontPage Explorer. Resolve the error as indicated by the dialog box.

Getting Your Web Online

OK, your pages are linked, your spelling is checked, and your images are all nice, neat, and trim. You're ready to go on to the Web now.

There are three ways you can get your files onto the Web. If your service provider has the FrontPage Server Extensions installed, you can use the Copy Web command in the FrontPage Explorer to transfer your web files to their server. If your service provider doesn't have the extensions, you have a couple of alternatives. I'll take them one by one.

Using the Copy Web Command

Use the Copy Web command to transfer your web to a service provider that has the FrontPage Server Extensions installed. When you use the Copy Web command, you can copy the root web alone, the root web and all child webs, or any child web to the remote server.

NOTE
When you use the Copy Web command to copy your web pages from your local computer to a remote server, you will be prompted to enter a name and password. Enter the name and password you use to transfer content to your remote Web directory in the Name and Password Required dialog box


To copy your web to the remote server, follow these steps:

  1. Establish a connection with your Internet provider, using normal login procedures.
  2. Open the web you want to copy to the remote server.
  3. From the FrontPage Explorer, choose File | Copy Web. The Copy Web dialog box, shown in Figure 25.9, appears.
    Figure 25.9 : Use the Copy Web command to copy webs to a remote server with the FrontPage Server Extensions installed.
  4. In the Destination Web Server field, select the server name or IP address that you use during remote connections.
  5. In the Destination Web Name field, enter the name of the web to which you want to copy. By default, a name identical to the web you are copying appears in this field.
  6. If you want to add your FrontPage Webs to a Web site that already exists on the server, check the Add to an Existing Web checkbox. Note that FrontPage will overwrite any files that already exist on the remote server if your new files have the same names.
  7. If you are copying the root Web and want to include all child Webs in the Copy Web command, check the Copy Child Webs checkbox. This will copy all files and Web directories on your server to the remote site.
  8. Click OK to copy the Web.

What happens after this? First, FrontPage checks to see whether the remote Web site has a web with the same name as the one you specified in the Destination Web Name field. If it does, it then checks whether you chose the Add to an Existing Web option. If you did, things proceed along just fine. If you didn't check that option, you'll get an error message.

Next, FrontPage gets the URL of the source web and creates the URL for the destination web. After that, FrontPage looks at each directory beneath the source web and creates each destination web. Directories that hold programs (such as the cgi-bin and _vti_bin directories) are marked as executable.

After the directories are created, FrontPage copies the contents into each directory. You'll see messages in the status bar as this occurs, indicating the percentage of completion.

FrontPage repeats this procedure for each child web beneath the root web, if you elected to copy all Webs on your server.

Once this process is finished, you should open the destination web in the FrontPage Explorer. Check to see whether there are any red triangles near any page names. If there are, follow the procedures outlined earlier in this chapter in "Fixing Page Errors."

Using the FrontPage Publishing Wizard

If your service provider doesn't have the FrontPage Server Extensions installed, you can use Microsoft's FrontPage Publishing Wizard to copy your pages to your remote site. This wizard has some advantages over using an FTP software package to transfer your files:

You can download the FrontPage Publishing Wizard from Microsoft's site at the following URL:

http://www.microsoft.com/frontpage/freestuff/fs_fp_pbwiz.htm

When you use the FrontPage Publishing Wizard's setup program, the wizard is added to your Windows 95 Start Menu or to a program group. To use the Microsoft FrontPage Publishing Wizard, establish a connection with your Internet Service Provider and then choose the Microsoft FrontPage Publishing Wizard from your Start menu. The wizard guides you through your choices.

To use the FrontPage Publishing Wizard, follow these steps:

  1. Choose the FrontPage Publishing Wizard from your Start menu or FrontPage program group. The introductory screen shown in Figure 25.10 appears. Click Next to continue.
    Figure 25.10: The introductory screen of the FrontPage Publishing Wizard.
  2. The wizard asks for your publishing location in the screen shown in Figure 25.11. If you aren't sure what settings to enter here, check with your Internet service provider.
    Figure 25.11: Enter your FTP server and directory and the name and password you use to access this directory.

    CAUTION
    If you're transferring a web other than your root web, append the web name to the end of this entry. If you don't do this, the pages are copied to your home directory and overwrite any pages with the same names. For example, if you're transferring your /FarOutThere web, your entry should look something like this:
    /home/shell/dtyler/FarOutThere


    Click Next to continue.
  3. The FrontPage Publishing Wizard returns a list of the webs in your Content directory, as shown in Figure 25.12. Choose the web you want to post from the Web to Post list and click Next to continue.
    Figure 25.12: Select the web you want to post.

    NOTE
    If you select the root web in this wizard, it doesn't automatically copy the child webs to the server.

  4. The wizard checks to see whether any of the pages in your selected Web site have features you need the server extensions for. If any are found, the Warning screen shown in Figure 25.13 appears. You are given the option not to post these pages on the next screen. Click Next to continue.
    Figure 25.13: The wizard checks to see whether any of your pages need the FrontPage Server Extensions and notifies you if any do.
  5. The wizard asks which files you want to post and shows the number of pages in each category, as shown in Figure 25.14. Choose one of the following options:
    Figure 25.14: Choose the files you want to post and click Post.

    NOTE
    You'll receive warnings when your pages use any of the following features:
    • Any of the FrontPage bots discussed in Chapter 20, "Runtime Bots: The Heartbeat of FrontPage Forms." The solution is to use custom CGI scripts or other scripting languages to design your forms.
    • Using the default FrontPage image map handler. The solution is to use the Tools | Web Settings command to assign a different image map handler. Refer to Chapter 23, "Web Maintenance and Administration," for the procedure.
    • Access permissions. If your FrontPage webs use pages or webs that require password authorization, you'll need to check with your service provider to determine how (or if) you can assign access permissions equivalent to those used in FrontPage. Also ask how you can use a hidden directory in your Web site.

  6. Establish a connection with your Internet service provider, using the procedures you normally do when you log onto the Internet.

    NOTE
    The FrontPage Publishing Wizard logs on to your FTP site during the publishing process

  7. To post your pages, click Post. The FrontPage Wizard logs onto your FTP site and transfers the files. You are notified of the progress on the transfer screen.

Using an FTP Program

If you use an FTP program to transfer your pages to your remote site, this will give you an idea which files you should (or shouldn't) transfer for your Web site to work properly.

You should transfer the following files:

You shouldn't transfer these files:

The Final Test

After you transfer your files to your remote site, browse through the site to make sure all links work the way they should. If your server has the FrontPage Server Extensions installed, you can use the Tools | Verify Links command while logged into your remote site to verify the links quickly. Check your pages once again, using various browsers, to see if things look the way they should.

Publicizing Your Web

There are several ways you can publicize your Web site. One way is to post messages in newsgroups that relate to your topic of interest. If your site has information that will be of interest to those who frequent the newsgroups, post your URL so they can find your site.

I know you're excited about your new Web site and want to tell the world-but post your Web announcements sparingly, posting to only a handful of newsgroups at a time. Most who frequent newsgroups don't take too kindly to spamming-posting messages in dozens of newsgroups at the same time.

Another good way to publicize your Web site is to register your home page URLs with some of the many Web searches and robots, such as Yahoo!, AltaVista, Excite, Open Text, and others. Some of these search engines also provide links to sites from which you can send your URL to many other search engines at once.

Workshop Wrap-Up

Your web is complete and resides on your remote server. Now you can get to the task of getting the word out. You've come a long way since the day you first opened the FrontPage box. Congratulate yourself for a great accomplishment! You're on the Internet!

Chapter Summary

In this chapter, you have learned how to give your Web site the final once-over and how to publish it to a remote site. You have also learned three ways you can get your pages out to the world and which files you shouldn't transfer when your service provider doesn't use the FrontPage Server Extensions.

Next Steps

I hope I've succeeded in anticipating everything you need to know when you design your Webs. Sometimes it's difficult to consider all the questions that arise. I'll be maintaining a support site for this book at the following URL and will post answers to frequently asked questions, include more tips and tricks, and also include some graphics you can include in your pages:

http://frontpage.flex.net/dtyler/FPSite/index.htm

As far as where to go next, the sky's the limit. Keep tabs of the new features being developed for the Web. Learn how to use custom scripting languages to enhance your site even further. Continue to develop your Web design skills to keep up with the latest and greatest.

Q&A

Q:Are there any newsgroups I can join that concentrate on using FrontPage or the Server Extensions?
A:Yes, Microsoft has some newsgroups that might help. Subscribe to one of the following newsgroups to communicate with others who use FrontPage:

For the FrontPage Client (FrontPage Explorer and FrontPage Editor):

news.microsoft.public.frontpage.client

For Internet Service Providers using UNIX Server Extensions:

news.microsoft.public.frontpage.extensions.unix

For Internet Service Providers using Windows NT Server Extensions:

news.microsoft.public.frontpage.extensions.windowsnt

Q:Are there any other areas where I can get technical information?
A:The Microsoft Knowledge Base, located on their Web site, has articles that address technical questions. There is a link to the Knowledge Base on MSN (go MSSUPPORT if you're a member of the Microsoft Network). You can also find the Microsoft Knowledge Base at the following URL:

http://www.microsoft.com/KB/