Using the widgets-config.xml file for Communities 
|
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. |
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® WebSphere® Application Server wsadmin client. See Starting the wsadmin client for details.
About this task
The widgets-config.xml 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.
Procedure
To configure settings in the widgets-config.xml file for Communities, complete the following steps.
- Start the wsadmin client from the following directory of the system on which you installed the Deployment Manager:
where <app_server_root> 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:
- Check out the widgets-config.xml file using the following command:
- Navigate to the temporary directory in which you saved the widgets-config.xml file, and then open the file in a text editor and 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.
Parent topic: Administering widgets and remote applications
Related tasks
Specifying different system users for widget life-cycle events
Enabling custom widgets for Communities
Setting allowed media gallery file extensions
Setting the object types available when adding a media gallery
Setting custom media gallery object types as default selections
Checking out the widgets-config.xml file for Profiles
Enabling custom libraries
Related reference
Media gallery widget widgets-config.xml definition
|
|
|
|
| Version 6 |
March 15, 2012 |
9:16:04 AM |
by IBM  |
|
|