+

Search Tips   |   Advanced Search

Configure profile types for widget layout

To configure widget layout, we can add a profile type containing the widget layout configuration to Profiles in widgets-config.xml.

To add a new profile type for widget layout.

  1. Check out the widget configuration file:

  2. Save a copy of widgets-config.xml.

  3. Open the file in a text editor.

  4. Add a widget layout under the <widgets> element:
    <layoutConfiguration>
    
      <widgets xmlns:tns="http://www.ibm.com/profiles-config">
        <layout resourceSubType="debug">
          <page pageId="profilesView">
            <widgetInstance uiLocation="col2" defIdRef="multiWidget" instanceId="tabsWidget1"/>
            <widgetInstance uiLocation="tabsWidget1" defIdRef="board"/>
            <widgetInstance uiLocation="tabsWidget1" defIdRef="contactInfo"/>
            <widgetInstance uiLocation="tabsWidget1" defIdRef="backgroundInfo"/>
            <widgetInstance uiLocation="tabsWidget1" defIdRef="multiFeedReader"/>
            <widgetInstance uiLocation="tabsWidget1" defIdRef="socialTags"/>
            <widgetInstance uiLocation="tabsWidget1" defIdRef="sand_thingsInCommon"/>
            <widgetInstance uiLocation="tabsWidget1" defIdRef="sand_socialPath"/>
            <widgetInstance uiLocation="tabsWidget1" defIdRef="reportStructure"/>
            <widgetInstance uiLocation="tabsWidget1" defIdRef="friends"/>
            <widgetInstance uiLocation="tabsWidget1" defIdRef="linkRoll"/>
          </page>
        </layout>
          
        <layout resourceSubType="restricted">
          <page pageId="profilesView">
            <!-- <widgetInstance uiLocation="col2" defIdRef="multiWidget" instanceId="mw1"/> -->
            <widgetInstance uiLocation="col2" defIdRef="contactInfo" instanceId="ci1"/>
            <widgetInstance uiLocation="col1" defIdRef="reportStructure"/>
          </page>
        </layout>
    
        <layout resourceSubType="mobile">
          <page pageId="profilesView">
            <widgetInstance uiLocation="col2" defIdRef="multiWidget" instanceId="tabsWidget1"/>
            <widgetInstance uiLocation="tabsWidget1" defIdRef="board"/>
            <widgetInstance uiLocation="tabsWidget1" defIdRef="contactInfo"/>
            <widgetInstance uiLocation="tabsWidget1" defIdRef="backgroundInfo"/>
            <widgetInstance uiLocation="col2" defIdRef="multiWidget" instanceId="tabsWidget2"/>
            <widgetInstance uiLocation="tabsWidget2" defIdRef="multiFeedReader"/>
            <widgetInstance uiLocation="col1" defIdRef="socialTags"/>
            <widgetInstance uiLocation="col1" defIdRef="sand_thingsInCommon"/>
            <widgetInstance uiLocation="col1" defIdRef="sand_socialPath"/>
            <widgetInstance uiLocation="col3" defIdRef="reportStructure"/>
            <widgetInstance uiLocation="col3" defIdRef="friends"/>
            <widgetInstance uiLocation="col3" defIdRef="linkRoll"/>
          </page>
        </layout>
    
        <layout resourceSubType="default">
          <page pageId="profilesView">
            <widgetInstance uiLocation="col2" defIdRef="multiWidget" instanceId="tabsWidget1"/>
            <widgetInstance uiLocation="tabsWidget1" defIdRef="board"/>
            <widgetInstance uiLocation="tabsWidget1" defIdRef="contactInfo"/>
            <widgetInstance uiLocation="tabsWidget1" defIdRef="backgroundInfo"/>
            <widgetInstance uiLocation="tabsWidget1" defIdRef="multiFeedReader"/>
            <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>
          <page pageId="searchResultView">
            <widgetInstance uiLocation="col1" defIdRef="commonTags"/>
          </page>
          <page pageId="searchView">
            <widgetInstance uiLocation="col1" defIdRef="sand_DYK"/>
            <widgetInstance uiLocation="col1" defIdRef="commonTags"/>
            <!-- 
              <widgetInstance uiLocation="col3" defIdRef="sand_recomItems"/>
            -->
          </page>
          <page pageId="networkView">
            <widgetInstance uiLocation="col1" defIdRef="sand_DYK"/>
          </page>
          <page pageId="editProfileView">
           ...
        </layout>
      </widgets>
    </layoutConfiguration>

  5. Save the changes and check widgets-config.xml back in :

    ProfilesConfigService.checkInWidgetConfig()

  6. To exit the wsadmin client, type exit at the prompt.

  7. Stop and restart the Profiles server.


Parent topic:
Profile-types


Related:
Apply property changes in Profiles
Create a simple profile data model and template customization