Liferay Customization Tip: Media Icons

Liferay as a product and platform is very customizable.  One particular area of customization is media icons–icons that are displayed in search results for documents and media of various sorts, such as items linked to pages, etc.  By default there is a specific configuration of icons and supported media types.  These can be overridden and extended.

In Control Panel->Server Administration -> Portal Properties, the default settings for the dl.file.icons portal property can be seen.  This can be overridden in portal-ext.properties to add additional media types.

For example, add the line below to the portal-ext.properties file so Liferay recognizes the .mp4 format.  This specification of the ‘dl.file.icons’ overrides the default portal.properties setting.


Additionally, the images used by Liferay for a given media type can be overwritten.  Image files named to match a recognized media type (such as mp4.png) can be placed in the /webapps/ROOT/html/icons folder and Liferay will pick them up and use them after a restart.

Alternatively, overrwritten images can also be placed in the webapp/images folder of a custom theme and deployed as a war file.

Additionally, custom images –in png format– can be substituted for existing images that Liferay uses for various features, their function implied by the file name — such as ‘journal.png’, ‘sitemap.png’, or ‘message_boards.png’ these would be placed in the icons folder as described above.

Simple customizations such as custom media icons and supported media types are an effective away to customize and personalize a Liferay installation to meet a desired look for a particular installation.

Share with your peeps...Share on LinkedInShare on Google+Tweet about this on TwitterShare on FacebookEmail this to someone

Robert Hall applies his impressive research, implementation and support skills to customer engagements as a Senior Consultant for Isos Technology.

Robert Hall's development as a software engineer was built on a strong foundation in researching parallel and distributed systems over five years at Kent State and the University of Michigan.  He readily applied the skills garnered during this time to his career as a professional software engineer.  

Over the course of the following fifteen years, Robert Hall worked in fields including telecom, banking, insurance and aviation.  The profiles of the companies Robert has worked with range from small startups to large Fortune 500 companies.  Robert has been involved in all aspects of the software development lifecycle, with extensive experience in design, development, release and post-release support as both a team member and team lead.

With five years of software engineering research and fifteen years as a professional software engineer, Robert Hall has cultivated the versatility that is the hallmark of an accomplished software engineering consultant.

Tagged with: , , — Posted in Liferay