cancel
Showing results for 
Search instead for 
Did you mean: 

how to disable download document action on alfresco 5.0D

agung_tarecha
Champ in-the-making
Champ in-the-making
how to disable download document action on alfresco 5.0D community edition?

I have try tutorial for alfresco 4 but nothing happen. I still can download document
1 ACCEPTED ANSWER

hardik1512
Star Contributor
Star Contributor
Hello,

I don't know any configuration for this but it can be done by overriding pdfjs.get.js file.
Here are the steps you can follow if you are using alfresco 5.0
1) Copy attached pdf-extension.xml file at tomcat\webapps\share\WEB-INF\classes\alfresco\web-extension\site-data\extensions folder under your Alfresco. 
2) Copy attached pdfjs.get.js file at tomcat\webapps\share\WEB-INF\classes\alfresco\web-extension\site-webscripts\custom\pdf folder under your Alfresco.
3) Restart Alfresco.

This should disable download button which you show in your attachment.

Hope this helps.

View answer in original post

26 REPLIES 26

mcavila
Champ in-the-making
Champ in-the-making
Yes, I removed the TXT and let the original file.
What about the paths that I had to create , am I right?

Yes you have to create folders if they dont exists.

mcavila
Champ in-the-making
Champ in-the-making
Hardik
It worked! You were incredible. Thank you and very, very much!
The download button was disabled .
Much prosperity for you.

mcavila
Champ in-the-making
Champ in-the-making
Hello Hardik. All ok?

I'm here again for help.
How could I put the option to print the document preview screen ?
Please find attached the screen image .

Thanked !

marylong68
Champ in-the-making
Champ in-the-making
Hello,
I read the post….my question is: is it possible to hide or disable DOWNLOAD button or action depending on user or group profile rather than all ??
And also to disable DOWNLOAD FOLDER as ZIP ??

Thank you in advance

You can use evaluator to hide or disable the download buttons.
You can allow only the site manager can download not the contributor or collaborator like that.
Something like below,

  <evaluator negate="false">evaluator.doclib.action.isSiteManager</evaluator>

Thanks Murali, sorry but I'm a little newbie….Where I have to put this code ??

You need to use, share-custom-config.xml and it needs to placed under web-extension folder.
 C:\Alfresco50d\tomcat\webapps\share\WEB-INF\classes\alfresco\web-extension\share-config-custom.xml

To remove the download Icon from the document-details header, you need to extend or overwrite the node-header.get.js and you need to set the
 AlfrescoUtil.param("showDownload", "true");
to
 AlfrescoUtil.param("showDownload", "false"); 
.

You need to place this file,
 C:\Alfresco50d\tomcat\webapps\share\WEB-INF\classes\alfresco\web-extension\site-webscripts\org\alfresco\components\node-details\node-header.get.js


To disable the download options form preview, use this, https://forums.alfresco.com/comment/158771#comment-158771

Now only the admin and SiteManager can download the documents / folders.
One issue here, if the user creates any documents that can be download and I will check on this, for the restrictions.





muralidharand
Star Contributor
Star Contributor
I tried but it is not working, the way, I was thinking.
Let me take a closer look on this and will update.

Thanks Murali I'll wait for your news………I'm hanging on your words……….