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:

  1. Use wsadmin to access and check out the Profiles configuration files.

    1. Access the Profiles configuration files:

  2. 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")
      

  3. Save a copy of the widgets-config.xml file.

  4. Open the file in a text editor.

  5. 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>
      

  6. Save your changes and check the widgets-config.xml file back in...

    ProfilesConfigService.checkInWidgetConfig()

  7. To exit wsadmin, type

    exit

    at the prompt.

  8. Stop and restart the Profiles server.


Add profile types

 

Related tasks

Apply property changes

 

Related reference


Searching Profiles


+

Search Tips   |   Advanced Search