+

Search Tips   |   Advanced Search

Configure Galleries

Configure the behavior of Gallery widgets by checking out and editing gallery-config.xml. Galleries are community widgets that display thumbnails of files such as photos, videos, and office documents.

Check out gallery-config.xml, edit the gallery configuration properties, and then check the file back in.

To edit the gallery configuration properties.

  1. Start the wsadmin client.

  2. Use the wsadmin client to access and check out the IBM Connections configuration files:

    1. Access the Connections configuration file: execfile("connectionsConfig.py")

      If we are prompted to specify a service to connect to, type 1 to select 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 by using a local file path, we must select the node where the file is stored. This information is not used by the wsadmin client when we are making configuration changes.

    2. Check out the gallery-config.xml configuration file:

      LCConfigService.checkOutGalleryConfig("/tmp","cell_name")

      Where:

      • /tmp is the temporary working directory to which configuration XML and XSD files are copied and are stored while you change them. Use forward slashes to separate directories, even with Windows.

        AIX, and Linux only: The directory must grant write permissions or the command does not run successfully.

      • To get cell name...

      For example:

      • AIX or Linux: LCConfigService.checkOutGalleryConfig("/opt/temp","foo01Cell01")

      • Windows: LCConfigService.checkOutGalleryConfig("c:/temp","foo01Cell01")

  3. Open gallery-config.xml in an editor and edit any of the configuration properties that are outlined in table 1.

    Configuration property Description Possible values Default
    maxNumberOfEntries The maximum number of thumbnails to show in the Gallery. Any positive integer. 12
    maxNumberOfRows The maximum number of rows of thumbnails to show in the Gallery. Any positive integer. 2
    sources If personal folders can be displayed in the Gallery, then community folders must also be displayed in the Gallery communityFolders or communityFolders,personalFolders communityFolders,personalFolders

  4. Save gallery-config.xml, and check it in : LCConfigService.checkInGalleryConfig("/tmp", "cell_name")

  5. Deploy the changes: synchAllNodes()

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

  7. Stop and restart all of the Connections application servers.


Parent topic:
Administer Communities