Logo Help Center

Using custom file icons in Enterprise Server

Using custom file icons in Enterprise Server

The files that are supported by Enterprise Server each appear with their own icon. To replace these icons by a different icon or to add an icon for a file that was added manually, follow these steps:

Step 1. In the configserver.php file for the Enterprise Server installation, locate the EXTENSIONMAP settings:

//    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:

'.nef' => array( 'image/raw', 'Image'),

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:

  • Image_x-raw_16x16.png
  • Image_x-raw_32x32.png
  • Image_x-raw_48x48.png
  • Save them to the following location:

[Enterprise Server path]/config/images/objecticons/Image

Was this article helpful?
0 out of 0 found this helpful / Created: / Updated:
Have more questions? Submit a request


Please sign in to leave a comment.