Blogs (Digital Solutions Blog)

Liferay 6.2 New Features: In-Place Blog Editing, Recycle Bin and Document Management


Ankit Kulshrestha
7 Years Ago

Liferay 6.2, the latest release, is already making history with over 60,000+ downloads worldwide. The reason for its popularity is the big leap taken by Liferay in terms of UI and other exciting features.

In earlier posts we have discussed major features like UI enhancements and Site Hierarchies; in this post we will discuss additional features which are not complex, but interesting, and easy to use as well.

In Place Blog Editing:

Liferay’s Blog Portlet has always been quite popular.  The Blog Portlet is a self-sufficient application which provides features like WYSIWYG editor, metadata support, ratings, subscriptiosocial bookmarking, email notifications etc.

As an enhancement to all the above mentioned features, Liferay added one more feature – “In Place Editing”. In earlier Liferay versions editing in Blog Portlet was a bit cumbersome, but now a blogger can start editing the content without going into edit mode of the blog. Let’s understand this concept with an example.

Let’s suppose you published a blog using Blog Portlet using Liferay 6.2 as shown below:

Next step is to login as Administrator or Blog owner, and this will enable all the editing features of the blog. Checkout the following screenshot:

In the above screenshot, you will see a small green icon appearing on the top left side of the blog- that’s the edit link for the blog.

Now if you have some minor changes to be done on the blog then you just need to do a mouse over on the blog content and click on it. As soon as you click on it, you see that the content gets replaced by a WYSIWYG editor showing the blog content inside as shown in the screenshot below:

Even in the In-Place Blog Editing mode, the portlet provides the full featured WYSIWYG editor to make changes.

The only limitation is that you can only change the blog content and not the metadata around the blog. To make changes to the metadata and other configurations you have to go the classic way by clicking on the “Edit” link.

Even with this limitation, I am sure this feature will prove popular with Bloggers and Portal Administrators.

Recycle Bin:

I am pretty sure that the term “Recycle Bin” is familiar to Windows users at least. So a feature similar to the Windows Recycle bin has been introduced in Liferay 6.2.   All deleted content if will first go to recycle bin, and then administrators can either restore or delete the content from recycle bin.

Let’s take a look closer to this and create few different types of content. We have created one web content; uploaded one file to a document library; created a blog; and a bookmark.

As an example we will consider Web content type content as shown below:

Click on the button highlighted by the red box to see the options for the content as shown below:

As highlighted in the above screenshot you can see a new option, “Move to Recycle Bin”. Clicking on this link moves the selected content to be moved to Recycle Bin as shown below:

The Recycle bin application provides details like Name, Type, Removed Date and Removed By which helps in identifying the data. The last column has an action button which provides two options “Restore” or “Delete” as shown below:

If you select the Restore option, then the content will be moved back to its respective content type; if delete option is selected, then the content gets deleted from the database and can never be retrieved back.

In Liferay 6.2, the Recycle bin has been made as a default option when deleting particular content. Also each recycle bin is associated to a particular site or group, which makes content management a lot easier. Also, content which becomes a part of Recycle bin is automatically deleted after one month.

There are few portal properties associated to the Recycle Bin referred as “Trash” in property files as follows:

·         trash.enabled=true

        Boolean property to enable/disable Recycle bin feature to all the sites.


       This property limits the search result size to mentioned value.

·         trash.entry.check.interval=60

       This property value is in minutes and used to set the interval to run CheckEntryMessageListener to check for and delete trash entries which have exceeded the maximum age.

·         trash.entries.max.age=43200

       This property value is also in minutes and used to set the maximum age for the entries kept in the Recycle Bin.

All of these can be configured in Portal Settings for each portal or in Site settings for each site.

To summarize, I would say that Liferay’s Recycle bin is definitely a good feature which will avoid accidental deletion of content from Liferay Database.

Document Management:

Liferay’s Document and Media Portlet is one of the best portlets offered out-of-the-box with Liferayl. It’s built on JCR 170 standards providing versioning of files. In Liferay 6.2 there are two significant features : “Document Folder Subscription” and “Drag n Drop Files”.

Document Folder Subscription:

Liferay 6.2 now provides subscriptions to Document and Media Library folder.   This feature notifies all the subscribed users about the changes for that particular folder. This works exactly like Blog Subscriptions , so once you have subscribed to a folder, you will start receiving emails as updates for any changes inside the folder. The following screenshot shows the Subscribe option which is now available in Documents and Media Portlet:

Once you have subscribed to a folder, then all the subfolders are also subscribed to- which means that if you try to make changes in any of the subfolders then the subscribed users are notified.

All the necessary Email Notification settings like Email From, Document Added Email and Document Updated Email are part of configuration of the Document and Media Portlet.

Drag n Drop Files:

This feature is an add-on to the Multiple file Upload feature of Document and Media Portlet. Users can now simply drag and drop the files they would like to upload to Document and Media Portlet.

The following screenshot shows the new drag and drop feature for Document and Media Portlet in Liferay 6.2:

After exploring in great detail several of Liferay 6.2’s  new features and enhancements, I am convinced that Liferay is getting better and better with every new release. What do you think?