(Click to open topic with navigation)
You can create a custom top link in Viewpoint. Top links appear in the upper-right corner of the Viewpoint page. For example, the "Log out" link is a top link.
You can create custom top links by using the <top-links> element in the navigation.xml file.
To create a custom top link
Let's say, for example, that you want your link to point to a custom page. You could do the following:
When you create a permission like this, the actual permission name will be in this format: <type>.<resource>.<action> (or in this case, page.customPage.read).
Any new page permission you create in MWS will appear in the Page Permissions when creating or editing roles. If you want to include the page permission in an existing role, you will have to edit the role and select the new custom page permission. For more information, see Editing an existing role.
By default, you should already see the "Log out" top link listed in the element.
Value | Description |
---|---|
thisWindow | Clicking the link exits the Viewpoint web application and displays the new page in the same window. |
newWindow | Clicking the link opens the link in a new window (browser tab). |
For example, let's say you are creating a new link under the "Administration" menu label that directs to the custom page. You want to label the link "Custom Page," and you want it to open in the same window. You also want to restrict access to this page to certain users, so you assign it the new "page.customPage.read" page permission you created in MWS (see step 1). This is how you would set up the xml:
... <top-links> <top-link href="logout" target="thisWindow" label="Log out"/> <top-link href="http://www.exampleURL.com/example" target='thisWindow' label="Custom Page" > <permission name="page.customPage.read"/> <top-link/> </top-links> ...
Your changes will update automatically. No restart of Tomcat or of Viewpoint is necessary. However, you must log out of Viewpoint and log back in.
Related topics