Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
liferay 7.2 : How to display document preview in custom portlet
Hi All,
In custom portlet i want to display the document preview with info tab how i want to display it?
i used below part in buil.gradel
compile group: 'com.liferay', name:
'com.liferay.document.library.web', version: '4.0.51'
compile
group: 'com.liferay', name:
'com.liferay.document.library.preview.audio', version:
'1.0.15'
compile group: 'com.liferay', name:
'com.liferay.document.library.preview.document', version:
'1.0.19'
compile group: 'com.liferay', name:
'com.liferay.document.library.preview.image', version:
'1.0.18'
compile group: 'com.liferay', name:
'com.liferay.document.library.preview.lang', version:
'1.0.6'
compile group: 'com.liferay', name:
'com.liferay.document.library.preview.video', version:
'1.0.17'
compile group: 'com.liferay', name:
'com.liferay.document.library.api', version: '5.2.6'
DLWebComponentProvider dlWebComponentProvider =
DLWebComponentProvider.getDLWebComponentProvider();
DLAdminDisplayContextProvider
dlAdminDisplayContextProvider =
dlWebComponentProvider.getDLAdminDisplayContextProvider();
DLDisplayContextProvider
dlDisplayContextProvider =
dlWebComponentProvider.getDLDisplayContextProvider();
DLRequestHelper
dlRequestHelper = new DLRequestHelper(request);
in init.jsp i used above code and getting the below error.
PWC6033: Error in Javac compilation for JSP__PWC6199: Generated servlet error:_package com.liferay.document.library.web.internal.util does not exist
Please let me know some one how i want to display the document preview with info tab.
Hi Srini,
Worked on same scenario in 6.2 long time back.
Please check below link
http://liferayplanet.blogspot.com/2015/05/browse-file-from-document-library-in.html
Regards,
Aravinth
Powered by Liferay™