Adding Pages to a Site Diagram

You can add pages to your site diagram in a number of ways. You can drag files from the Project Explorer into the site diagram or you can create new files directly in the site diagram. You can also drag files from other applications, such as Microsoft® Internet Explorer or Microsoft® FrontPage®.

After you have added pages to the site diagram, you can then arrange the pages to create hierarchical relationships. Navigation bars use these hierarchical relationships to determine which navigation links to include on the navigation bars for each page in the site diagram. For more information, see Designing Site Navigation and Arranging Pages in a Site Diagram.

Note   Each .htm file can only appear once in a site diagram. Other files, such as .asp files, .gif files, and external pages, can appear multiple times in a site diagram.

To create new pages in the site diagram

  1. Open or create a site diagram.

  2. From the Diagram menu, choose New HTML Page or New ASP Page.

    -or-

    Right-click the diagram, and then choose New HTML Page or New ASP Page from the shortcut menu.

A new page is added to the site diagram. You can then drag the page to position it in the diagram. The new page is given a default name. For more information about renaming a page in a site diagram, see Renaming Page Labels.

Each .htm file can only appear once in a site diagram, but .asp files can appear multiple times in site diagrams using different parameters. You can add files to site diagrams by dragging and dropping the files from the Project Explorer into the site diagram or with the Add Existing File command.

Use the Add Existing File command when you want to create a new instance of a file that already exists in your site diagrams. Use the drag and drop method when you do not want to create a new instance of a file but want to include a file in the current site diagram that already exists in another site diagram. If you attempt to drag in a file that already exists in the current site diagram, Site Designer highlights the existing file in the diagram but does not add the file again.

To add pages to a site diagram from a project

  1. Open or create a site diagram.

  2. From the Diagram menu, choose Add Existing File.

    The Choose URL dialog box appears.

  3. In the Projects list, select the project name or folder for the file.

  4. In the Contents list, select the file you want to add to the diagram.

  5. In the Parameters drop-down list, enter a parameter value or bookmark value.

  6. Choose OK.

    If the file you specify already exists in a site diagram, a message box appears. To add the existing instance, choose Yes. To create a new instance, choose No. If the file does not exist in any site diagram, Site Designer adds the file to the current diagram.

You can then drag the page to position it in the diagram.

To add pages from another application

  1. Open or create a site diagram.

  2. Open the application containing the page you want to add to the site diagram.

  3. Drag the link from the source application into Visual InterDev.

  4. Drop the file in the site diagram.

If the file already exists in another site diagram, Site Designer will add the file and its navigation structure to the current diagram. If the file does not exist in any site diagram, Site Designer adds the file to the current diagram.

Note   Each page you add to a site diagram from another application or project displays the External page icon. An external page cannot have child pages in a site diagram.