Home
Configure profile types for widget layout
To configure widget layout, you can add a profile type containing the widget layout configuration to Profiles in the widgets-config.xml file.
To edit configuration files, use wsadmin. See Start the wsadmin client for information about how to start the wsadmin command line tool.
To add a new profile type for widget layout, perform the following steps:
Use wsadmin to access and check out the Profiles configuration files.
- Access the Profiles configuration files:
- Stand-alone deployment:
execfile("profilesAdmin.py")
- Network deployment:
execfile("WAS_HOME/profiles/Dmgr01/config/bin_lc_admin/profilesAdmin.py")
- Use the following command to check out the widget configuration file:
ProfilesConfigService.checkOutWidgetConfig("<working_directory>", "cell_name")where:
- <working_directory> is the temporary working directory to which the configuration XML and XSD files will be copied. The files are kept in this working while you make changes to them.
- cell_name is the name of the WebSphere Application Server cell hosting the Profiles feature. This argument is required even in stand-alone deployments.
For example:
ProfilesConfigService.checkOutWidgetConfig("/wsadminoutput", "jdoe30Node02Cell")
- Save a copy of the widgets-config.xml file.
- Open the file in a text editor.
- Add a widget layout under the <widgets> element, as in the following example:
<layoutConfiguration> <widgets xmlns:tns="http://www.ibm.com/profiles-config"> <layout resourceSubType="default"> <page pageId="profilesView"> <widgetInstance uiLocation="col3" defIdRef="reportStructure"/> <widgetInstance uiLocation="col3" defIdRef="friends"/> <widgetInstance uiLocation="col1" defIdRef="socialTags"/> <widgetInstance uiLocation="col3" defIdRef="linkRoll"/> <widgetInstance uiLocation="col2" defIdRef="multiFeedReader"/> </page> </layout> <layout resourceSubType="default"> <page pageId="profilesView"> ... </layout> </widgets> </layoutConfiguration>
- Save your changes and check the widgets-config.xml file back in...
ProfilesConfigService.checkInWidgetConfig()
- To exit wsadmin, type
exitat the prompt.
- Stop and restart the Profiles server.
Related tasks
Related reference