Use widgets-config.xml 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, check the file out and, after making changes, check the file back during the same wsadmin session as the checkout for the changes to take effect.
The widgets-config.xml file defines the widgets available for use in Communities and specifies the life-cycle events associated with each widget. You also need to edit settings in this file to specify a different system user for managing widget life-cycle events.
To configure settings in widgets-config.xml for Communities.
- Check out widgets-config.xml :
cd app_server_root/profiles/Dmgr01/bin
./wsadmin.sh -lang jython
execfile("communitiesAdmin.py")
CommunitiesConfigService.checkOutWidgetsConfig("/tmp", "cell_name")To get cell name...
print AdminControl.getCell()
- Edit widgets-config.xml
The configuration settings for Communities appear following the section that begins with...
<resource type="community"
- Apply the changes by doing the following:
- Check in the updated widgets-config.xml file:
CommunitiesConfigService.checkInWidgetsConfig("/tmp", "cell_name")
For example:
CommunitiesConfigService.checkInWidgetsConfig("C:/tmp2","MyServerNode01Cell")
- To exit the wsadmin client, type exit at the prompt.
- Restart the Communities application using the WAS console.
Parent topic:
Administer widgets and remote applications
Related:
Specify different system users for widget life-cycle events
Enable custom widgets for Communities
Check out widgets-config.xml for Profiles