Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • IBM Connections wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search

Categories

Tag Cloud

  • 1.0
  • 1.0.x
  • 2.0
  • 2.0.1
  • 2.0.1.1
  • 2.0_media
  • 2.5
  • 2.5_deployment
  • 2.5_media
  • 2.5_performance
  • 3
  • 3.0
  • 3.0.1
  • 3.0.1_media
  • 3.0_media
  • 3_deployment
  • 8.1.1
  • 8.2
  • activities
  • administrators
  • api
  • best_practices
  • blogs
  • bookmarks
  • business_card
  • cluster
  • communities
  • community
  • community_manager
  • connections
  • connections_3
  • connections_301
  • customization
  • customize
  • customizing
  • demos
  • deploying
  • deployment
  • deployments
  • developers
  • dogear
  • Domino
  • Edge server
  • education
  • error messages
  • files
  • forums
  • getting_started
  • Help
  • home
  • home_page
  • homepage
  • how-to
  • HTTP server
  • ibm
  • index
  • installation
  • integration
  • iOS
  • ipad
  • iWidget
  • J2EE
  • javadoc
  • lc3.0
  • learning
  • lotus-connections
  • mml
  • mobile
  • Notes
  • performance
  • person_card
  • Portal
  • portlet
  • portlet_factory
  • profiles
  • proxy server
  • quickr
  • Redbooks
  • rest
  • reverse proxy server
  • Sametime
  • scenarios
  • search
  • security
  • self-paced
  • SSO
  • tags
  • test_infrastructure
  • troubleshooting
  • tuning
  • video
  • VideoFest
  • videos
  • WAI
  • WAS
  • web_seminar
  • WebAppIntegrator
  • WebSphere
  • widgets
  • wikis
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > IBM Redbooks: Customizing IBM Connections 3.0.1 > 5.2 Specifying labels for attributes
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

5.2 Specifying labels for attributes 

expanded Abstract
collapsed Abstract
No abstract provided.
Previous | Next

Although you created a field in the procedure 5.1 Adding a field (custom extension attribute) to Profiles, the field label does not appear correctly. Labels for these fields in the user interface are stored separately in application property files. You configure the label by adding a reference to the file in the application-specific configuration file and adding the label to a custom property file in the customization directory. The property file is often referred to as a resource bundle.

Before you begin
Add the contractAgency field to the Profiles application. For more information, see 5.1 Adding a field (custom extension attribute) to Profiles. 

Procedure
  1. Check out the configuration files.
    The general process of checking out and checking in configuration files is described in 1.4 Publishing customizations with the wsadmin tool.
    Adapt the following example commands for your system:
    cd e:\IBM\WebSphere\AppServer\profiles\Dmgr01\bin
    wsadmin -lang jython -user wasmgr -password d3moL0tus
    execfile("profilesAdmin.py")
    ProfilesConfigService.checkOutConfig("f:/temp", AdminControl.getCell() )

    Remember to leave the wsadmin session open to check in the file in a later step.
  2. Add the attribute in the Profiles configuration file.
    1. Navigate to the temporary location where you checked out the profiles-config.xml file.
    2. Open the profiles-config.xml file with a text editor.
    3. Find the <Contact information> tag in the layout section.
    4. Add this line below the line containing the courtesyTitle label.
      code:}{code}
      The following figure shows how the new attribute should appear.


    5. Save the profiles-config.xml file.
  3. Add the resource bundle to the IBM Connections configuration file.
    1. Navigate to the temporary location where you checked out the IBM Connections configuration file.
    2. Open the LotusConnections-config.xml file with a text editor
    3. Find the <resources> tag at the end of the file.
    4. Add the following code:
      <widgetBundle name="label.custom.resources" prefix="custom" />
    5. Save the LotusConnections-config.xml file.
      Tip: To improve performance, use as few resource bundles as possible. Use one customized file for all your new keys.
  4. Check in the two configuration files. For more information about checking in configuration files, see 1.4 Publishing customizations with the wsadmin tool.
    • Check in the profiles-config.xml file using this wsadmin client command:
      ProfilesConfigService.checkInConfig()
    • Check in the LotusConnections-config.xml file. 
      LCConfigService.checkInConfig()

  5. Add the contractAgency string to the customization directory.
    1. Create a file and save it with the file name label.custom.resources.properties in the strings customization directory <customizationDir\strings>. For information about the location of the customization directory, see 1.2 IBM Connections customization variables.
    2. Open the label.custom.resources.properties file with a text editor and add this key-value pair on its own line:
       
      label.custom.contractAgency=Contract Agency
    3. Optional: create language-specific versions of the file to display the string in other languages. For example,
      • label.custom.resources_fr.properties for string values in French
      • label.custom.resources_es.properties for string values in Spanish
        For more information about localization, see 2.2 Customizing product strings.
  6. Test the new attribute.
    1. Use the WebSphere Application Server Integrated Solutions Console to stop and restart the server hosting the Profiles application.
    2. Clear your browser cache.
    3. Navigate to your profile in IBM Connections. Your new attribute, "Contract Agency," should appear in the Contact Information tab, as in this example:


Next steps
You have now finished adding an attribute and specifying a label for it. You can add unlimited attributes to profiles, however, too many will render profiles unusable. Having added the attribute to Profiles, you may want to consider how the attribute will be populated. Refer to 5.3 Populating custom extension attributes for how to populate attributes.

Related tasks
  • Modify a label: In this procedure you created an attribute. You can use a similar process to modify the label on an existing attribute. For example, you might change the default label "Mobile Number" to "Cell Phone." For more information about modifying labels, see  2.2 Customizing product strings.
  • Retrieve, update, or delete the attribute using the Profiles API. For more information, see 5.3 Populating custom extension attributes.
  • Add profile types to customize the layout of the main Profiles page and the layout of the widgets used in Profiles. For more information, see5.6 Adding profile types.
    Parent topic: 5.0 Customizing Profiles

    expanded Article information
    collapsed Article information
    Category:
    IBM Redbooks: Customizing IBM Connections 3.0.1
    Tags:
    Redbooks

    This Version: Version 2 November 22, 2011 12:59:15 PM by Stephen Smith  IBMer

    expanded Attachments (0)
    collapsed Attachments (0)

     


    expanded Versions (2)
    collapsed Versions (2)
    Version Comparison     
    Version Date Changed by               Summary of changes
    This version (2) Nov 22, 2011 12:59:15 PM Stephen Smith  
    1 Nov 21, 2011 12:36:00 PM Amanda J Bauman  
    expanded Comments (0)
    collapsed Comments (0)
    Copy and paste this wiki markup to link to this article from another article in this wiki.
    Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
    • All Lotus and WebSphere Portal wikis
    • IBM developerWorks
    • IBM Software support
    • IBM Social Business User Experience Blog
    • IBMSocialBizUX on Twitter
    • IBMSocialBizUX on Facebook
    • Lotus product forums
    • IBM Social Business UX blog
    • IBM Collaboration Solutions
    • Recently added feedRecently added
    • Recently edited feedRecently edited
    • Recently added comments feedRecently Added Comments
    • Wiki Help
    • Forgot user name/password
    • Wiki design feedback
    • Content feedback
    • About the wiki
    • About IBM
    • Privacy
    • Contact IBM
    • IBM Terms of use
    • Wiki terms of use