Inserting a site map

You can insert a site map into a Web page by dragging the object from the Palette view. Typically, each Web site has one page that contains a map, or organized collection of links, of the whole site.

  1. Create a Web project.

  2. Create a Web site structure.

  3. Create or import Web resources.

  4. Create a Web page template (optional).

    Note: If you use a page template to govern the layout and visual design of all of the pages in a Web site, you can insert a site map onto the page template, rather than adding the navigation to every page individually. The links in the site map are then updated dynamically for each individual page in the site.

To insert a site map into a Web page, do the following:

  1. To open Web Site Navigation, expand your Web project in the Project Explorer view and double-click

    Web Site Navigation

  2. Double-click a page icon in Web Site Navigation to open the Design page in Page Designer.

  3. Select the

    Web Site Navigation drawer in the Palette view and drag the Site Map object onto the page; an insert window opens.

  4. Select whether you want to use a

    Sample or a

    User-defined site map. If you want to use a sample site map, select one of the

    Thumbnail images and the

    File name is populated. If you have a user-defined site map, you can click Browse to locate the file in the in the

    Current project or Import the file from the file system.

  5. Choose the

    Start level and the

    End level, the level of the hierarchy of the site structure included in the site map. For example, if you have 6 levels of pages in your site, 1 being the top page, you can choose to only include levels 1 to 3 in your site map. This is useful if the pages below level 3 are very detailed, specific pages and you want the site map to only include links to broader, overview pages.

    Restriction: You can only insert up to the fifth level of pages in your site. Even if you set an end level over 5 in the attribute view for the siteedit:sitemap tag, the links to the pages above level 5 will not be included in the site map.

  6. If the Web page or page template to which you are adding the navigation is a JSP or Faces JSP page, click Next. On the Optional Settings for Specification File page of the wizard, select either

    HTML navigation or

    JSP navigation.

  7. Click Finish. A navigation icon () is inserted on the page or template to indicate that a navigation component exists.

  8. Press CTRL+S to save your changes. The site map is inserted on the page.

 

Related concepts

Dynamic navigation elements

 

Related tasks

Inserting a drop-down list

Inserting a navigation bar

Inserting a navigation trail

Inserting a navigation menu