How to handle special mime types and document formats in Liferay DMS

Liferay 6.1 DMS (Documents and Media Portlets) has been super so far. - Recognition of metadata and viewing popular document formats such as DOC, XLS, PDF, TXT, etc.

However, my corporation has special needs. Some of our customers want us to provide special processing (online viewing and editing) of some other formats, such as * .ai, * .psd documents, as is done in Google Docs and similar cloud-based document management software .

We already have special code that accesses these formats. However, we are not quite sure how to extend Liferay DMS so that it shows our special preview and editor when these formats are selected in DMS.

Somebody knows? Is it possible to extend the DMS by adding a button?

+4
source share
2 answers

In my opinion, you can try the EXT plugin to include your special code for formats and change some JSPs in the DMS portlet and you can add your own based on requirements.

For a high-level example, you can modify the JSP that displays a list of files, and then click on a file that you can check for a type in the action class, and accordingly process it or let Liferay process it.

Hope this helps.

+1
source

Why don't you hook the document library?

Extend and override all methods in:

com.liferay.documentlibrary.util.FileSystemHook

+1
source

Source: https://habr.com/ru/post/1402291/


All Articles