Home

 

Customizing action links on the business card


Overview

Customize the action links that display on the bottom of the Profiles business card by editing settings in the Profiles configuration file.

To edit configuration files, use wsadmin. See Start wsadmin for information about how to start the wsadmin command-line tool.

The bottom section of the Profiles business card displays links that allow you to perform different actions directly from the card. For example, you 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.


Customize the action links that display on the business card

  1. Use wsadmin to access and check out the Profiles configuration files.

    1. Access the Profiles configuration files:

    2. Check out the Profiles configuration files...

      ProfilesConfigService.checkOutConfig("<working_directory>", "cell_name")

      where:

      • <working_directory> is the temporary working directory to which the configuration XML and XSD files are copied and are stored while you make changes to them. Use forward slashes to separate directories in the file path, even if you are using the Microsoft Windows operating system.

      • cell_name is the name of the WebSphere Application Server cell hosting the Profiles feature. This argument is required even in stand-alone deployments. This argument is case-sensitive, so type it with care. If you do not know the cell name, do one of the following to determine it:

        • Stand-alone deployment: See:

          WAS_HOME\profiles\profile_name\config\cells\

        • Network deployment: From wsadmin...

          print AdminControl.getCell()

      For example:

      • AIX/Linux:

          ProfilesConfigService.checkOutConfig("/opt/prof/temp","foo01Cell01")

      • Microsoft Windows:

          ProfilesConfigService.checkOutConfig("c:/prof/temp","foo01Cell01")

  2. Edit profiles-config.xml

  3. Locate the <businessCardLayout> element, and specify the actions that you want to include under the <actions> element. Each <action> element must contain the following attributes:

      labelkey label to display for the action.
      href Supports the same substitutions as the business card URL patterns, that is, email, userid, displayName, and uid. It also supports url patterns...

        '${[service=name]SvrRef}'

      ...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>
      

  4. Save your changes. Apply property changes


Customizing the business card

 

Related tasks

Apply property changes


+

Search Tips   |   Advanced Search