Message Boards

How to disable preview in Documents and Media

Régis Albuquerque, modified 11 Years ago.

How to disable preview in Documents and Media

New Member Posts: 7 Join Date: 10/8/12 Recent Posts
How I disable preview int Documents and Media, I want let the user just download the documents (not preview)?
thumbnail
Pavel Savinov, modified 11 Years ago.

RE: How to disable preview in Documents and Media (Answer)

Junior Member Posts: 94 Join Date: 9/24/12 Recent Posts
Hi Régis.

You should set the following property in your portal-ext.properties:

dl.file.entry.preview.enabled=false
Eric Smith, modified 10 Years ago.

RE: How to disable preview in Documents and Media

Junior Member Posts: 66 Join Date: 8/28/12 Recent Posts
This isn't working for me in Liferay 6.1 EE.

I still have previews showing up in asset publisher portlets and documents and media display portlets. Is there another setting for the portlets? I'd prefer to have just an icon show up that's based on the file type.
thumbnail
Juan Gonzalez, modified 10 Years ago.

RE: How to disable preview in Documents and Media

Liferay Legend Posts: 3089 Join Date: 10/28/08 Recent Posts
Try with

dl.file.entry.thumbnail.enabled=false
Eric Smith, modified 10 Years ago.

RE: How to disable preview in Documents and Media

Junior Member Posts: 66 Join Date: 8/28/12 Recent Posts
Thanks. To get it to work I did the following:

1. Added these lines to my portal-ext.properties file
dl.file.entry.preview.enabled=false
dl.file.entry.thumbnail.enabled=false

2. Cleared all existing thumbnails
Control Panel->Server Admin->Reset Preview and Thumbnail Files

This got rid of all the images, but my asset publisher still showed a broken link, so then I
3. Hooked document_library/asset/full_content.jsp, changing it so that showThumbnail=false is always the case
thumbnail
Sravan Kumar Chalvadi, modified 7 Years ago.

RE: How to disable preview in Documents and Media

New Member Posts: 3 Join Date: 3/9/16 Recent Posts
Hi,

I have similar requirement, links in Asset Publisher gadget shall download docs with out any preview. I tried using suggested settings in portal-ext.properties but those did not worked.

Note: We are doing this on Liferay 7.