Configuring file type icon mappings

Social rendering provides two types of list appearance components for result lists: simple and comprehensive. Both list appearances components show file type-specific icons when they render list entries that refer to individual files. In this case, the file type is determined based on the file extensions of the individual files. You can configure the set of file types that you want to use in the WP Connections Integration Service resource environment provider. In the context of social lists, a file type is defined by a file type name and a list of file extensions. This list defines the mapping between individual files and your file types. In your social list appearance components, you can then access the file type name for a specific file by using the Web Content Manager [AttributeResource attributeName="fileType"] tag. That tag is defined in the HCL Digital Data Connector (DDC) for HCL Portal profile. You can then use the file type name to render the appropriate image, for example, by assigning a corresponding CSS class.

About this task

The mappings are defined in the WP Connections Integration Service resource environment provider in the WebSphere® Integrated Solutions Console. To modify the mappings, proceed as follows:

Procedure

  1. Log in to the WebSphere Integrated Solutions Console
  2. Click Resources > Resource Environment > Resource Environment Providers.
  3. Click WP ConnectionsIntegrationService.
  4. Under Additional properties, click Custom properties.
  5. Edit the values for the appropriate file.type.mapping.type properties as required.
    The value for each property is a comma-separated list of file extensions. An example setting is file.type.mapping.text = log, txt. This mapping means that the Web Content Manager [AttributeResource attributeName="fileType"] tag returns the string text for all files with a log or txt file type extension.

What to do next

For your reference, the following topic lists the default file type mappings.