Customizing Viewpoint > Customizing navigation components > Adding/editing top links

3.2.2 Adding/editing top links

You can specify the links that appear in the upper right corner of the Viewpoint header (for example, "Contact Us" and "Login/Logout"). Additionally, you can associate images with these links (for details, see Adding top link icons).

You can create top links by using the <top-link> element in the core.xml file.

<top-links>
    <top-link href='login?logout=true' target='thisWindow' label='Log out' />
</top-links>

Attributes and values for the <top-link> element are:

To add/edit a top link

  1. Open the core.xml file located in the Viewpoint home directory.
  2. Inside of the <navigation>'s <top-links> child element, insert <top-link>.
  3. Set the required href attribute (for a list of Viewpoint page hrefs, see Viewpoint page URLs).
  4. Specify the link's display name by using the label attribute.
  5. Specify where the link opens by using the target attribute. It can be set to any of the following:
  6. For example:

    <top-links>    
        <top-link href="login?logout=true" target="thisWindow" label="Logout" />
    </top-links>
  7. Restrict who may use the link by setting permissions (for details, see Filtering navigation with permissions). For example:
  8. <top-links>
        <top-link href="login?logout=true" target="thisWindow" label="Logout">
            <permission name="nav.logout" />
        </top-link>
    </top-links>

    Only users with the support.helpRequest permission can view the Support link, and only users with the manage.VPCs permission can view the Manage page.

Related topics