Checking out the widgets-config.xml file for Profiles 

The widgets-config.xml files contains configuration settings for each of the widgets supported by Profiles. To update settings in the file, check the file out and, after making changes, check the file back during the same wsadmin session as the checkout for the changes to take effect.


Before starting

To edit configuration files, use the IBM WAS wsadmin client. See Starting the wsadmin client for details.


About this task

The widgets-config.xml file defines the widgets available for use in Profiles and Communities. You can edit configuration settings in this file to perform various tasks. For example, if you want to make custom widgets available, you define the widgets in this file. You also edit settings in this file if you want to configure the Recent Posts widget to only display tabs for the applications included in your deployment. For more information, see Configure the Recent Posts widget.


Procedure

To configure settings in the widgets-config.xml file for Profiles...

  1. From the dmgr host:

      cd $DMGR_PROFILE/bin
      ./wsadmin.sh -jython
      execfile("profilesAdmin.py")

      If prompted to specify a service to connect to, type 1 to pick the first node in the list. Most commands can run on any node. If the command writes or reads information to or from a file using a local file path, pick the node where the file is stored.

  • 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 directory while you make changes to them.

      • <cell_name> is the name of the WAS cell hosting the Profiles application. This argument is required.

      For example:

      ProfilesConfigService.checkOutWidgetConfig("/wsadminoutput", "jdoe30Node02Cell")

  • Navigate to the temporary directory in which you saved the widgets-config.xml file, and then open the file in a text editor and make the required changes.

  • Save your changes and check the widgets-config.xml file back in using the following command:

      ProfilesConfigService.checkInWidgetConfig()

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

  • Stop and restart the Profiles server.


    Parent topic

    Configure widgets in Profiles


    Related tasks


    Use the widgets-config.xml file for Communities
    Configure the Recent Posts widget
    Manage widgets in Profiles


       

     

    });

    +

    Search Tips   |   Advanced Search