Our documentation has been relocated here, the Liferay Developer Network. Please update your bookmarks!

Liferay’s Documents and Media library provides a mechanism for storing files online using the same type of structure that you use to store files locally. You can use it to store files of any kind; it serves as a virtual shared drive. The Documents and Media portlet takes its name from the fact that it represents a redesign of two portlets from previous versions: the Document Library and the Image Gallery. First, the Documents and Media library serves as a repository for all types of files; there’s no need to store image files in a separate Image Gallery anymore. Second, the Media Gallery portlet introduced in Liferay 6.1 does not serve as a repository but just displays selected content from the Documents and Media library. It can display image, audio and video files. Other new features include customizable document types and metadata sets, automatic document preview generation, and support for mounting multiple external repositories. The new document types and metadata sets are an addition to, not a replacement for, the portal’s system of tags and categories. Let’s start exploring how to use the Documents and Media portlet.

Getting Started with the Documents and Media Portlet

The Documents and Media portlet is non-instanceable. This means that each page on your portal can host at most one such portlet. Furthermore, if you add multiple Documents and Media portlets to...

Read More

Document Types and Metadata Sets

Customizable document types and metadata sets are new features in Liferay 6.1. When a user assigns a document type to a document, the user is required to fill out the fields defined by the metadata...

Read More

Alternative File Repository Options

By default, Liferay stores documents and media files on the file system of the server where it’s running. You can choose a specific location for the document library store’s root directory by...

Read More

Using External Repositories

Adding repositories in Documents and Media is a new feature in Liferay 6.1. Content Management Interoperability Services (CMIS) is a specification for improving interoperability between Enterprise...

Read More

Microsoft Office Integration

Liferay lets you open Microsoft Office files that reside in Documents and Media. You can open the files from Microsoft Internet Explorer or open them directly from your Microsoft Office...

Read More

Configuring the Documents and Media Portlet

To configure the Documents and Media portlet, click on the wrench icon at the top of the portlet window and select Configuration. The portlet-specific customizations appear on the Setup tab. To...

Read More

Automatic Previews and Metadata

Whenever possible, Liferay 6.1 generates previews of documents added to the Documents and Media library. Out of the box, Liferay only ships with Java-based APIs to generate previews for documents....

Read More

Liferay Sync

Liferay Sync, released in September 2012, is an add-on product for Liferay 6.1 GA2 CE and EE that synchronizes files between your Liferay server and users’ desktop and mobile environments. With...

Read More


In this chapter, we examined Liferay’s Documents and Media Library, a powerful and customizable virtual shared drive. Liferay 6.1 introduced the ability to mount multiple external repositories to...

Read More
0 (0 Votes)
Summary Previous