The Person Menu Extension builder adds an extension to the Person Menu.
The Person Menu Extension builder provides the ability to extend the IBM® WebSphere® Portal Person Menu. The WebSphere Portal Person Menu is a dynamic menu that WebSphere Portal renders when a user's name is semantically tagged in the page markup with the appropriate data. Use the People Awareness builder in IBM WebSphere Portlet Factory to render the WebSphere Portal Person Menu.
The Person Menu Extension builder does the following.
- Adds a new action to the Person Menu.
The new action is available for all portlets on the WebSphere Portal page where the tag is present.
- Creates a new WebSphere Portlet Factory client side event.
The event name is formed from the name of the builder and the optional Client Event Prefix
input. When the new menu action is selected, the client side event is fired.
alert("Executing Action for My New Extension: " + this.person.fn);
input. Details about the selected user can be used to dynamically determine whether to show or hide the menu action. The following sample script shows the menu action only for the wpsadmin user.
return person.fn == "wpsadmin";
The script must return a boolean value.
When you specify the Person Menu Extension builder Action ID
input, make sure to use a unique value that does not conflict with other Person Menu actions that are added by other portlets on the same WebSphere Portal page.
Parent topic: Builder help
About using the builder call editor
People Awareness builder
Client Event Handler builder