掲示板

How to disable preview in Documents and Media

11年前 に Régis Albuquerque によって更新されました。

How to disable preview in Documents and Media

New Member 投稿: 7 参加年月日: 12/10/08 最新の投稿
How I disable preview int Documents and Media, I want let the user just download the documents (not preview)?
thumbnail
11年前 に Pavel Savinov によって更新されました。

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

Junior Member 投稿: 94 参加年月日: 12/09/24 最新の投稿
Hi Régis.

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

dl.file.entry.preview.enabled=false
10年前 に Eric Smith によって更新されました。

RE: How to disable preview in Documents and Media

Junior Member 投稿: 66 参加年月日: 12/08/28 最新の投稿
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
10年前 に Juan Gonzalez によって更新されました。

RE: How to disable preview in Documents and Media

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
Try with

dl.file.entry.thumbnail.enabled=false
10年前 に Eric Smith によって更新されました。

RE: How to disable preview in Documents and Media

Junior Member 投稿: 66 参加年月日: 12/08/28 最新の投稿
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
7年前 に Sravan Kumar Chalvadi によって更新されました。

RE: How to disable preview in Documents and Media

New Member 投稿: 3 参加年月日: 16/03/09 最新の投稿
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.