Customize action links on the business card
Customize the action links that display on the Profiles business card by editing settings in the Profiles configuration file.
The Profiles business card displays links that allow you to perform different actions directly from the card. For example, we can configure the card to display a link that allows users to send mail to the profile owner or a link that allows users to add the profile owner to their network.
Use the following procedure to customize the action links that display on the business card:
- Check out the Profiles configuration files:
app_server_root/profiles/Dmgr01/bin
./wsadmin.sh -lang jython
execfile("profilesAdmin.py")
ProfilesConfigService.checkOutConfig("/tmp", "cell_name")To determine cell name:
print AdminControl.getCell()
- Open profiles-config.xml using a text editor.
- Locate the <businessCardLayout> element, and specify the actions to include in the <actions> element. Each <action> element must contain the following attributes:
- labelkey. Label to display for the action.
- href. This attribute supports the same substitutions as the business card URL patterns, that is, email, userid, displayName, and uid. It also supports '${[service=name]SvrRef}' url patterns using what is defined in LotusConnections-config.xml.
The <action> element can, optionally, include an <icon> subelement. In addition, the <label> and <alt> elements can have an optional bundleIdRef attribute, which references an external resource bundle.
For example:
<businessCardLayout profileType="default"> ... <actions> ... <action urlPattern="mailto:{email}" emailEnabledRequired="true" liClass="lotusSendMail"> <label labelKey="personCardSendMail"/> <icon href="{profilesSvcRef}/nav/common/styles/images/iconSendMail.gif"> <alt labelKey="personCardSendMail"/> </icon> </action> ... </actions> </businessCardLayout>
- Save the changes.
- After making changes, check the configuration files in during the same wsadmin session in which you checked them out. See Applying property changes in Profiles for information about how to save and apply the changes.
Parent topic:
Customize the Profiles business card
Related:
Apply property changes in Profiles