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
IBM Translated Product Documentation...

 IBM Connections 3.0.1 documentation

 IBM Connections 3.0.1 Javadoc
 IBM Translated Product Documentation

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 Connections 3.0.1 documentation > Adding custom strings for widgets and other specified scenarios
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
(Current editable edition)
Original noneditable edition
Current editable edition
(Original noneditable edition)

Adding custom strings for widgets and other specified scenarios 

expanded Abstract
collapsed Abstract
You can add custom strings or modify existing strings when performing certain tasks in IBM® Connections, without having to update product resource files.



You can add custom strings or modify existing strings when performing certain tasks in IBM® Connections, without having to update product resource files.

Before you begin

When adding custom strings to IBM Connections, you must use the wsadmin client. See Starting the wsadmin client for details.

IBM Connections provides a external resource bundle loader for adding and updating strings to Profiles, Communities, and the Home page. You can only use this mechanism when performing the following tasks:
  • Adding custom extension attributes to profiles
  • Customizing the Profiles business card
  • Adding custom widgets to Communities, Profiles, and the Home page
  • Configuring the vCard export application
  • Renaming the tabs in the Home page
  • Adding custom themes to Communities
For any other scenarios that are not explicitly listed above, you can add custom strings by following the steps outlined in Customizing product strings.

About this task

To add custom strings for the scenarios listed above, you need to create a bundle containing the strings and save it in the <customization_dir>/strings directory that is created at installation time. You must then register the file in the LotusConnections-config.xml file. For performance reasons, include all the resource strings in a single bundle.

Procedure

  1. Create a properties file containing the strings that you want to add in the <customization_dir>/strings directory.
    • To specify the name of the default properties file, use the following syntax: <resource_bundle_name>.<properties_file_name>
    • To specify custom strings in multiple languages, append an underscore followed by the appropriate language code to the resource bundle name using the following syntax: <resource_bundle_name>_<language_code>.<properties_file_name>
      For example, if your string bundle is called com.example.resources, you might create a file in the strings directory that looks like the following:<customization_dir>/strings/com.example.resources.properties This file contains the strings used for the default locale. When there is no specific bundle for the user's locale, the labels in this default properties file are used.

      To include an English version of the strings, you might create the following file: <customization_dir>/strings/com.example.resources_en.properties

      And to include a Slovakian version of the strings, you might include the following file:<customization_dir>/strings/com.example.resources_sk.properties

      The following sample string is contained in the properties file.

      label.vcard.encoding.cp943c=Japanese Encoding

  2. Register the resource bundle in the LotusConnections-config.xml file:
    1. Open a command window and start the wsadmin command-line tool as described in the topic, Starting the wsadmin client.
    2. Enter the following command to access the IBM Connections configuration file:
      • execfile("<$WAS_HOME>/profiles/<DMGR>/config/bin_lc_admin/connectionsConfig.py")
    3. Enter the following command to check out the IBM Connections configuration file:
      • LCConfigService.checkOutConfig(<working_directory>, <cell_name>) where:
        • <working_directory> is the temporary working directory to which the configuration XML and XSD files are copied. The files are kept in this working directory while you make changes to them.
        • <cell_name> is the name of the IBM WebSphere® Application Server cell hosting the IBM Connections application. This argument is required. It is also case-sensitive, so type it with care.
        For example:

        LCConfigService.checkOutConfig("/temp", "foo01Cell01")

    4. From the temporary directory to which you just checked out the IBM Connections configuration files, open the LotusConnections-config.xml file in a text editor.
    5. Add the following line of code into the <resources> element block to register the resource bundle:
      • <widgetBundle prefix=<bundle_prefix> name=<bundle_name> />


        where
        • <bundle_prefix> is a globally unique name that identifies the bundle. This is a string value. The bundle prefix is used to uniquely scope the keys in each bundle. The prefix must be unique across all registered widget bundles.
          • This bundle prefix maps to the bundle ID reference that you specify when you define a custom resource attribute or widget. For more information about defining custom resource attributes, see Enabling custom extension attributes for Profiles. For information about defining custom widgets, see Enabling custom widgets for Communities or Enabling custom widgets for Profiles.
        • <bundle_name> is the Java™ package name. This parameter takes a string value. When you name the resource bundle, the elements in the bundle name must correspond to the file name of the properties file that you created in step 1.
          • For example, if the strings customization directory contains the files com.example.resources.properties, com.example.resources_en.properties, and com.example.resources_sk.properties, the name of the bundle is com.example.resources.
        The following sample code is used to register the com.example.resources bundle:

        <resources>
         
          <!--  Example:  The attribute 'prefix' must be globally unique as it identifies the bundle when used in IBM Connections.  -->
         
          <widgetBundle prefix="example" name="com.example.resources"/>
         
        </resources>

    6. Save your changes to the LotusConnections-config.xml file.
    7. To check in the updated file, use the following command:
      • LCConfigService.checkInConfig()
    8. To exit the wsadmin client, type exit at the prompt.

What to do next

After completing this procedure, you can use the labels in other configuration settings or in your JavaScript™ code. For example, you can use the strings when customizing the business card in Profiles (to add labels for custom extension attributes) and adding widgets to Profiles, Communities, and the Home page (to provide widget titles and descriptions). You can also use the strings to rename the Updates, Widgets, and Administration tabs in the Home page.

Note that when you specify external labels for attributes, editable attributes, or custom extension attributes, the labels are only applied to the user interface element that the configuration object represents. For example, if you apply a custom label to a business card <attribute> element, the label does not automatically apply to the same element in the advanced search page layout. For information about how to apply the label configuration to each user interface element individually, see Specifying external labels for attributes.
    Example: Adding custom strings
    The following code shows some examples of the type of custom strings that can be added using the external resource bundle loader.
Parent topic: Customizing product strings

Related concepts
Customizing the Profiles business card

Related tasks
Starting the wsadmin client
Enabling custom extension attributes for Profiles
Configuring the vCard export application for Profiles
Configuring Profiles directory search options
Enabling custom widgets for Communities
Enabling custom widgets for Profiles
Specifying external labels for attributes
Adding third-party links via the XML configuration file
Adding third-party links using JavaScript
Adding a theme to the Communities configuration file
Installing the non-English version of the SharePoint widget for Communities

expanded Article information
collapsed Article information
Category:
IBM Connections 3.0.1 documentation, Product Documentation,
Tags:

This Version: Version 4 March 15, 2012 9:16:04 AM by IBM  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (4)
collapsed Versions (4)
Version Comparison     
Version Date Changed by               Summary of changes
This version (4) Mar 15, 2012 9:16:04 AM IBM  
3 Mar 15, 2012 9:16:04 AM IBM  
2 Apr 8, 2011 10:26:07 AM Duinseach Carey  
1 Apr 6, 2011 3:58:33 PM IBM  
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