Fórum

How to disable preview in Documents and Media

Régis Albuquerque, modificado 11 Anos atrás.

How to disable preview in Documents and Media

New Member Postagens: 7 Data de Entrada: 08/10/12 Postagens Recentes
How I disable preview int Documents and Media, I want let the user just download the documents (not preview)?
thumbnail
Pavel Savinov, modificado 11 Anos atrás.

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

Junior Member Postagens: 94 Data de Entrada: 24/09/12 Postagens Recentes
Hi Régis.

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

dl.file.entry.preview.enabled=false
Eric Smith, modificado 10 Anos atrás.

RE: How to disable preview in Documents and Media

Junior Member Postagens: 66 Data de Entrada: 28/08/12 Postagens Recentes
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, modificado 10 Anos atrás.

RE: How to disable preview in Documents and Media

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
Try with

dl.file.entry.thumbnail.enabled=false
Eric Smith, modificado 10 Anos atrás.

RE: How to disable preview in Documents and Media

Junior Member Postagens: 66 Data de Entrada: 28/08/12 Postagens Recentes
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, modificado 7 Anos atrás.

RE: How to disable preview in Documents and Media

New Member Postagens: 3 Data de Entrada: 09/03/16 Postagens Recentes
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.