Using custom file icons in Enterprise Server
Step 1. In the configserver.php file for the Enterprise Server installation, locate the
<Enterprise Server path>/config
// EXTENSIONMAP: // Mapping of file types (extensions, for example image.jpg) to their MIME type and object // type as stored in the Enterprise database. // define ('EXTENSIONMAP', serialize( array( '.jpg' => array( 'image/jpeg', 'Image'), '.jpeg' => array( 'image/jpeg', 'Image'), '.gif' => array( 'image/gif', 'Image'), '.tif' => array( 'image/tiff', 'Image'), '.tiff' => array( 'image/tiff', 'Image') ...
Step 2. From the list, locate the file to which the file icons need to be defined and note down the image format/format combination.
Example: The settings for the Nikon image raw file format .NEF (a format that can be added as a custom format) would be as follows:
Here, 'image/raw' is the image format/format name combination.
Note: This image format/format combination is later used as part of the file name for the custom file icons.
Step 3. Create 3 file icons in .png format, one in each of the following pixel sizes:
- 16x16 pixels
- 32x32 pixels
- 48x48 pixels
Step 4. Save the files as follows:
- Use the following naming convention:
[image format]_[format name]_[pixel size].png
Example: For our above example of the Nikon image format, the file names would be as follows:
- Save them to the following location:
[Enterprise Server path]/config/images/objecticons/Image