11-21-2012 10:24 AM
My workplace requires that we prevent users from downloading the documents or the PDFs.
We need a way to force users to only view/edit content directly in the Nuxeo interface.
The first thing I want to do is completely remove the download and PDF links from the interface. Then I will port all existing documents into "Note" objects, directly in the Nuxeo interface.
Can this be done? Is their a better way to achieve this?
11-22-2012 09:47 AM
I have been beating my head against the wall called "Nuxeo Studio". The PDF documentation indicates that I can configure (disable) the document facet "downloadable". This facet does not exist in Nuxeo Studio...
11-22-2012 12:21 PM
The problem is that in 5.5 version the method "isDownloadable" is never used in code or configuration files.
The PDF link appears when there is a proper converter. It means that you can hide the link by removing the conversion configuration for PDF. But there will be still problem with the download link.
Finally, you can edit xhtml files or create new and edit proper widgets and include them in your bundle. Most of them are in the nuxeo-platform-webapp bundle (content_widget_template.xhtml, extend_file_widget.xhtml, extend_sufile_widget.xhtml)
11-22-2012 12:26 PM
Thank you, Adam. It is difficult for me to come to terms with the fact that this much hoop-jumping is required to do something so seemingly simple. Nevertheless, I will try to figure out these widgets you refer to. The documentation covering customization is nearly impossible to follow...
11-22-2012 01:11 PM
Well, at first I thought it was working. I removed the code from content_widget_template.xhtml which creates the download link. The link disappeared. After restarting Nuxeo, the link reappears because all files in /var/lib/nuxeo/server/nxserver/nuxeo.war/widgets/summary are replaced when Nuxeo restarts! Arrrrgggh!
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.