Managing widgets in Profiles
Configure settings in the widget definition file, widgets-config.xml, when you want to modify the widgets that display in the Profiles application.
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 is stored in the following location:
WAS_HOME\profiles\AppSrv01\config\cells\CELL_NAME\LotusConnections-config\widgets-config.xml
Attention: After you finish adding the widget to the widget-config.xml
file, you must register the widget in the Widget container by completing the steps in the What
to do next section at the end of this topic.
Procedure
To edit the widgets that display in Profiles, complete
the following steps.
Example
Although this example might not match the content of the widgets-config.xml included in your deployment, it does include the widgets supported for your deployment.
<layout resourceSubType="default">
<page pageId="searchView">
<widgetInstance uiLocation="col1" defIdRef="commonTags"/>
<widgetInstance uiLocation="col3" defIdRef="sand_DYK"/>
<widgetInstance uiLocation="col3" defIdRef="sand_recomItems"/>
</page >
<page pageId="profilesView">
<widgetInstance uiLocation="col1" defIdRef="socialTags"/>
<widgetInstance uiLocation="col1" defIdRef="sand_thingsInCommon"/>
<widgetInstance uiLocation="col2" defIdRef="multiWidget"/>
<widgetInstance uiLocation="multiWidget" defIdRef="board"/>
<widgetInstance uiLocation="multiWidget" defIdRef="contactInfo"/>
<widgetInstance uiLocation="multiWidget" defIdRef="backgroundInfo"/>
<widgetInstance uiLocation="multiWidget" defIdRef="multiFeedReader"/>
<widgetInstance uiLocation="col3" defIdRef="sand_socialPath"/>
<widgetInstance uiLocation="col3" defIdRef="reportStructure"/>
<widgetInstance uiLocation="col3" defIdRef="friends"/>
<widgetInstance uiLocation="col3" defIdRef="linkRoll"/>
</page >
<page pageId="searchView">
<widgetInstance uiLocation="col1" defIdRef="commonTags"/>
</page >
<page pageId="networkView">
<widgetInstance uiLocation="col1" defIdRef="sand_DYK"/>
</page >
<page pageId="editProfileView">
<widgetInstance uiLocation="col1" defIdRef="socialTags"/>
<widgetInstance uiLocation="col1" defIdRef="sand_thingsInCommon"/>
<widgetInstance uiLocation="col3" defIdRef="sand_socialPath"/>
<widgetInstance uiLocation="col3" defIdRef="reportStructure"/>
<widgetInstance uiLocation="col3" defIdRef="friends"/>
<widgetInstance uiLocation="col3" defIdRef="linkRoll"/>
</page >
</layout>
What to do next
After you finish adding the widget to the widget-config.xml file, you must
register the widget in the Widget container by completing the following steps:
- 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 Profiles widget, theprereqs
setting should be set to "profiles
" 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=["profiles"])
- Run the run the
widgetEnable
command. - Run the
clearWidgetCaches
command.