Changing Site Mapping Settings

You can exert a great deal of control over Visio 2007’s site mapping capabilities. Maybe you just need a list of graphics, or you need to find links to out-of-date pages. When you click Settings in the Generate Site Map dialog box, you can do the following:

  • Change the number of levels in your site that Visio 2007 analyzes, the number of links per level, and the layout used for the site map on the Layout tab.

  • Choose the content to include and the shapes used in the site map on the Extensions, Protocols, and Attributes tabs.

  • Specify the scope of the site search and provide proxy authentication on the Advanced tab.

To best use the options in the Web Site Map Settings dialog box, you need a working knowledge of HTML and Web site structure. Knowing which attributes to tell a crawler to examine and which to ignore requires a certain amount of experience with HTML source code. For example, if you’re trying to determine how many graphics are used on a site, you can disable Audio on the Extensions tab so that Visio 2007 doesn’t include .wav files in your site map. Although you can also filter the view of your site map after it’s generated and temporarily hide particular types of content from view, the Web Site Map Settings dialog box gives you more control over items you don’t need to see in the first place. In addition, disabling options allows Visio 2007 to generate a site map more quickly and makes it less likely that you’ll end up with an unmanageably huge diagram.

Note

Visio 2007 lets you omit options from the Web Site Map Settings dialog box. On the Extensions, Protocols, and Attributes tabs, select an item, and then click Remove. Visio 2007 prompts you to confirm the action. For example, if you add a custom extension, protocol, or attribute, you can later delete it when you no longer want to include it in a site map.


Choosing a Layout for a Site Map

On the Layout tab, shown in Figure 15-7, you can choose how much of a site to discover, Visio 2007’s term for searching the hierarchy of folders and links on a site. You can map up to 12 levels with a maximum number of 5,000 links in the layout, but to do that you’ll need a really fast computer, a speedy connection, and a lot of patience. You have these options:

  • Maximum Number Of Levels and Maximum Number Of Links Determine how “deep” into the Web site your search will go.

  • Complete Current Level After Maximum Number Of Links Have Been Discovered This option continues searching a level even after the maximum number of links has been found.

Figure 15-7. You can specify how much of a Web site to analyze and how to lay out the results on the Layout tab of the Web Site Map Settings dialog box.


In the Layout Style section, you can also specify the type of layout you want to use when the site map is created on the drawing page. The options you choose here (repeated in the Generate Site Map dialog box) reflect the built-in layout and routing behavior that Visio 2007 supports for all connected diagram types. These options can be changed before or after the site map is generated. To display options, click Modify Layout. The Circular and Flowchart styles tend to be most useful, but you can always modify any layout style on the drawing page by dragging shapes or choosing the Shape, Re-layout Shapes command.

Troubleshooting: The Web site’s navigational hierarchy is not preserved in the site map that Visio 2007 creates

If your Web site’s navigation is dynamically created as the page is displayed, it won’t show up correctly in the site map diagram that Visio 2007 creates. Visio 2007 finds all the links on your page regardless of how your menu is structured, and all links within the file are displayed. For example, if you use dynamic HTML–based cascading menus (as many portions of the Microsoft Web site do), the organization of your site map won’t match the organization of your site’s menu. The hierarchy of your menu is not preserved.


The Shape Text section of the Web Site Map Settings dialog box provides the shape text display options. You can choose to display the relative URL, absolute URL, file name, HTML title, or no text. Finally, the Shape Size section displays the options for sizing the located links.

Choosing File Types to Map

Visio 2007 decides which links to follow when generating a site map based on the file extension of a site’s content. On the Extensions tab of the Web Site Map Settings dialog box, you can select the elements to include in your site map by specifying the file extensions that Visio 2007 searches for, as Figure 15-8 shows. Visio 2007 uses the shape shown in the Shape column to display links in the site map. You can associate a different shape with a type of file by selecting a name and then clicking Modify. If you want your site map to include a file type that doesn’t appear on the Extensions tab, click Add to specify a name and file extension, which Visio 2007 adds to the list.

Figure 15-8. In the Web Site Map Settings dialog box, the Extensions tab lets you choose links to specific file types based on their file extension.


Note

You can clear HTML if you want to create a list of only graphics, ASPs, or some other site content. Visio 2007 still searches the site’s hypertext to locate content and links, but HTML pages aren’t included in the site map.


Including Link Protocols

When Visio 2007 crawls a site, it can search the syntax of a link to see if it includes a particular communication protocol, such as MailTo, as Figure 15-9 shows. You can select the protocols to include and define new ones on the Protocols tab of the Web Site Map Settings dialog box, shown in Figure 15-10. For example, a link that generates an e-mail message or displays a MailTo site doesn’t have a file associated with it, but you might still want to include information about the link in your site map.

Figure 15-9. This site includes a link that specifies the MailTo protocol, which Visio 2007 displays with the MailTo shape.


Figure 15-10. You can instruct Visio 2007 to include links that reference a particular protocol on the Protocols tab of the Web Site Map Settings dialog box.


Visio 2007 supports the following protocols, not all of which are listed on the Protocols tab: HTTP, HTTPS, File, FTP, GOPHER, MailTo, NEWS, NNTP, PROSPERO, TELNET, and WAIS. If a protocol you follow isn’t included, click Add to add it to the list. In the Shape column of the Protocols tab, Visio 2007 displays the shape it will use in your site map if it finds a link that uses the selected protocol. You can assign a different shape to a protocol by selecting an option in the Name column, and then clicking Modify.

Inside Out: HTTP

Even though Hypertext Transfer Protocol (HTTP) doesn’t appear as an option on the Protocols tab, Visio 2007 searches links that rely on this protocol. If it didn’t, you wouldn’t get much of a site map.


Specifying HTML Attributes

For a finer level of control, you can specify the attributes of HTML elements or tags that you want to include in a site map on the Attributes tab, as Figure 15-11 shows. For example, Visio 2007 can examine the BACKGROUND attribute of the <BODY> tag to look for additional graphic files that are used as backgrounds. Visio 2007 can map just about any combination of linkable elements and attributes. When you select an option on this tab, Visio 2007 searches for and displays any files referenced by the attribute. When you clear a check box, Visio 2007 ignores links to content referenced by that attribute.

Figure 15-11. Use the Attributes tab of the Web Site Map Settings dialog box to specify tag or element attributes that are included in links.


Note

Because the HREF attribute is the basis for a site map, you cannot modify it. Visio 2007 requires this attribute to search for links.


Table 15-3 lists the attributes that Visio 2007 supports and the elements or tags that use the attributes.

Table 15-3. HTML Attributes You Can Map
AttributesElements or Tags
ACTION<FORM>
BACKGROUND<BODY>
CODE<APPLET>
HREF<A>, <AREA>, <BASE>, <LINK>
SRC<BGSOUND>, <DYNSRC>, <EMBED> (Netscape 2), <FRAME>, <IFRAME>, <IMG>, <INPUT>, <SCRIPT>

Narrowing the Scope of Site Mapping

You can specify criteria that limit the areas that Visio 2007 searches when you generate a site map on the Advanced tab, as Figure 15-12 shows.

Figure 15-12. On the Advanced tab of the Web Site Map Settings dialog box, you can specify scope and proxy authentication.


The first three options narrow the scope of the search in different ways:

  • Analyze All Files Discovered Visio 2007 does not limit the scope of the search.

  • Analyze Files Within Specified Domain Visio 2007 searches all servers within a common domain. For example, if you specify http://www.microsoft.com as the address to map, Visio 2007 searches links in the microsoft.com domain only.

  • Analyze Files Within Specified Directory Visio 2007 searches only the user-specified directory and the folder beneath it.

Within the search area, you can specify the links to include with the following check boxes:

  • Include Links To Files Outside Of Search Criteria Select this check box to display one level of any link that points to files outside of the specified search criteria. If you selected Analyze All Files Discovered, this check box isn’t relevant, because everything will be in the search criteria. If you select this check box, the Generate Site Map dialog box displays Show External Links: Yes.

  • Display Duplicate Links As Expandable Select this check box to include duplicate links, which Visio 2007 lists as collapsed items that you can expand. Otherwise, Visio 2007 includes the links and displays them as dimmed items.

  • Discover Links Within VBScript And JavaScript Select this check box to locate links within scripts.

Note

If you select the Discover Links Within VBScript And JavaScript check box, Visio 2007 might cause Internet Explorer to crash. For details, see the sidebar titled “Locating Links Within VBScript or JavaScript” later in this chapter.


You can also choose from the following consolidation options:

  • Consolidate Non-Expandable Links Selecting this check box consolidates the links within the site that have no tier below them.

  • Ignore Fragment Identifiers Selecting this check box causes Visio 2007 to ignore identifiers of Web site page fragments.

  • Ignore Query Components Selecting this check box causes Visio 2007 to ignore components that are written to generate a query.

Specifying a Password and Security Options for a Site

To provide authentication for protected Web servers, you can use the options on the Advanced tab of the Web Site Map Settings dialog box. When you’re mapping a password-protected Web site, you can enter your authentication information in the Name and Password boxes. Visio 2007 remembers your password throughout your current working session with the Web Site Map template but doesn’t store it after you close the drawing file.

Note

Although you can enter HTTP authentication, you can’t specify a password for a Microsoft Windows NT–protected shared resource, which is stored on the network level.


Locating Links Within VBScript or JavaScript

On the Advanced tab of the Web Site Map Settings dialog box, you have the option to include links in your site map that are embedded within VBScript or JavaScript code. Typically, scripts are hidden within comment tags to avoid confusing older browsers. However, if you select this option, Visio 2007 can search within HTML-embedded scripts for links. The problem is that Internet Explorer can crash, because it wasn’t designed to support this type of search. For details about the issue, see Knowledge Base article Q266343.


You can also modify security settings that have been established for your browser on the Advanced tab. If you click Internet Properties, the Internet Properties dialog box opens. Here you can change Content or Security filters before continuing with the site mapping process.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset