Using the widgets-config.xml file for CommunitiesAdded by IBM on February 11, 2013 | Version 1 (Original)
|The widgets-config.xml files contains configuration settings for each of the widgets supported by Communities and Profiles. To update settings in the file, you must check the file out and, after making changes, you must check the file back during the same wsadmin session as the checkout for the changes to take effect.
Before you begin
To edit configuration files, you must use the IBM
® Application Server wsadmin client. See Starting the wsadmin client
About this task
file defines the widgets available for use in Communities and specifies the life-cycle events associated with each widget. You can edit configuration settings in this file to perform various tasks. For example, if you want to make custom widgets available, you define the widgets in this file. You also need to edit settings in this file if you want to specify a different system user for managing widget life-cycle events. For more information, see Specifying different system users for widget life-cycle events
To configure settings in the widgets-config.xml
file for Communities, complete the following steps.
Parent topic: Administering widgets and remote applications
Post-migration steps for the media gallery terms and conditions
Starting the wsadmin client
Specifying different system users for widget life-cycle events
Enabling custom widgets for Communities
Checking out the widgets-config.xml file for Profiles
Enabling Linked Libraries
Setting allowed ECM servers
Media gallery widgets-config.xml definition
- Start the wsadmin client from the following directory of the system on which you installed the Deployment Manager:
is the WebSphere
Application Server installation directory and dm_profile_root
is the Deployment Manager profile directory, typically dmgr01.
You must start the client from this directory or subsequent commands that you enter do not execute correctly. For more information, see Starting the wsadmin client
- Start the Communities Jython script interpreter using the following command:
If prompted to specify a service to connect to, type 1 to pick the first node in the list. Most commands can run on any node. If the command writes or reads information to or from a file using a local file path, you must pick the node where the file is stored.
- Check out the widgets-config.xml file using the following command:
- 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. When specifying the path to a working directory or temporary directory where the checked out files are to be placed, use a forward slash as the path separator, even for Microsoft Windows systems.
- cell_name is the name of the WebSphere Application Server cell hosting the Communities application. This argument is required. It is also case-sensitive, so type it with care.
- Navigate to the temporary directory where you saved the widgets-config.xml file.
Open this file in a text editor and find the section that pertains to Communities. The configuration settings for Communities appear following the section that begins with <resource type="community"
. Make the required changes.
- Apply your changes by doing the following:
- Check in the updated widgets-config.xml file using the following command:
- To exit the wsadmin client, type exit at the prompt.
- Restart the Communities application using the WebSphere Application Server Integrated Solutions Console.