Foren

document library display: disable comments and preview?

thumbnail
lou cat, geändert vor 11 Jahren.

document library display: disable comments and preview?

Regular Member Beiträge: 196 Beitrittsdatum: 26.01.12 Neueste Beiträge
Hello,

In 6.0.6, is there a way to disable comments for document library display? I find the settings for every portlet but this emoticon
It seems disabled for guest users but I'd need it for everyone.

Also, would it be possible to have a direct download of the document instead of opening the page with the information about the document itself?
Not only I don't need and don't like that the user could see URL, status, version etc of the document, but if I try to download a document which is at the bottom of the page, it opens this "preview" of the document but it goes up to the top of the page, thus hiding it!

please is there anyone who can give suggestions on this?
thank you emoticon
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: document library display: disable comments and preview?

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
would it be possible to have a direct download of the document instead of opening the page with the information about the document itself?


Almost everybody I know is asking the same thing. You'll have to create a hook to modify the jsp page. I think there were several files I had to modify because several pages such as search result was doing the same thing.
thumbnail
lou cat, geändert vor 11 Jahren.

RE: document library display: disable comments and preview?

Regular Member Beiträge: 196 Beitrittsdatum: 26.01.12 Neueste Beiträge
ok, thank you Hitoshi.
If also the new Document and Media Library has this characteristics, is there a place where we can vote for adding a configuration file to remove this?
Not planning to upgrade soon at all, but better think about the future anyway emoticon
thumbnail
lou cat, geändert vor 11 Jahren.

RE: document library display: disable comments and preview?

Regular Member Beiträge: 196 Beitrittsdatum: 26.01.12 Neueste Beiträge
Isn't there a way to differentiate the code for document library and document library display?
I'd like to have a direct download link only in document library display, it is fine for me if it's control panel and document library people will see a "preview" of the file with all the information.

I just don't understand if there is a clear distinction in the code between the 2 portlets...

I'm trying to customize view_file_entries.jspf but with no success at the moment emoticon
thumbnail
lou cat, geändert vor 11 Jahren.

RE: document library display: disable comments and preview?

Regular Member Beiträge: 196 Beitrittsdatum: 26.01.12 Neueste Beiträge
Ok, I guess there's no easy way to separate document library and document library display, but it's ok, I managed to do it and will keep this behaviour everywhere.
I just modified view_file_entries.jspf assigning to rowHREF the direct link of the document:

rowHREF=themeDisplay.getPortalURL()+ themeDisplay.getPathContext()+ "/documents/"+ themeDisplay.getScopeGroupId() + StringPool.SLASH + fileEntry.getFolderId() + StringPool.SLASH + HttpUtil.encodeURL(HtmlUtil.unescape(fileEntry.getTitle()));

I honestly didn't find other files that need to be changed, search.jsp works as usual, but we'll see.
Chris Moberly, geändert vor 8 Jahren.

RE: document library display: disable comments and preview?

New Member Beiträge: 4 Beitrittsdatum: 27.11.15 Neueste Beiträge
Lou Cat,

I know this is three years old, but this just made my day. Thank you so much for sharing this simple and elegant solution!!!