Configuring file type icon mappingsAdded by IBM | Edited by IBM on June 13, 2014 | Version 7 (Show original)
|Social rendering provides two types of appearance for the result lists: simple and comprehensive. Both list appearances 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 presentation components, you can then access the file type name for a given file by using the Web Content Manager [AttributeResource attributeName="fileType"] tag . You can then use the file type name to render the appropriate image, for example, by assigning a corresponding CSS class.
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:
- Log in to the WebSphere Integrated Solutions Console
- Click Resources -> Resource Environment -> Resource Environment Providers.
- Click WP ConnectionsIntegrationService.
- Under Additional properties, click Custom properties.
- 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.
For your reference, the following topic lists the default file type mappings.
File type mappings referenceParent topic: Configuring global settings for social rendering
The social lists show specific icons for the different file and service types in the result lists. You can modify the file type mappings that are used for displaying these icons. For your reference, these mappings are listed here.