Enabling custom widgets for Communities
To make custom widgets available for use in Communities, configure the widgets in the Communities section of the widget definition file, widgets-config.xml.
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
<resource type="community"...>
tag.The widgets-config.xml file contains information about widget definitions, widget attributes, widget location, default widget templates, and page definitions. Custom widget attributes are defined by the widget developer. However, as administrator, you need to configure the widgets by adding a <widgetDef> that contains the appropriate attributes for each widget in the widget configuration file.
You can integrate a custom widget as part of HCL Connections and you can also integrate the widget as an external application. To integrate the widget inside the IBM Connections application, your widget must provide a full page mode. To integrate the widget externally, you must use a navBarLink attribute to register a navigation link along with your widget configuration information. Also, include the community inline business card in the external application to allow community members to navigate back to the community. For more information, see Integrating the Communities business card.
Procedure
What to do next
- Register the widget using one of the methods described in the following topics:
- Gadget Registration Commands explains how to register gadgets and widgets from a command line.
- Configuring Home page widgets explains how to register gadgets and widgets from the administration interface.
Note: When you register a Communities widget, theprereqs
setting should be set to "communities
" as in the following example:NewsWidgetCatalogService.addWidget(title="helloworld", text="Hello World Widget.", url="https://serverName.ibm.com/helloworld/helloworld.xml", categoryName=WidgetCategories.NONE, isGadget=FALSE,appContexts=[WidgetContexts.EMBEDXP], policyFlags=[GadgetPolicyFlags.TRUSTED], prereqs=["communities"])
- Run the run the
widgetEnable
command. - Run the
clearWidgetCaches
command.
If you are adding widgets that are hosted on third-party servers, then you might need to update your proxy configuration. For more information, see Configuring the AJAX proxy for a specific application.