02-22-2018 02:07 PM
Hello,
I have read posts about how to disable download actions for a consumer or at all. But, I need to disable Download action on a folder.
Any suggestions?
04-04-2018 05:12 PM
02-22-2018 11:07 PM
This can be done share document library XML file. It has an entry for folder and document actions. You can remove or add specific evaluator for folder action.
03-07-2018 07:13 PM
Hi ashwin.mor _
I want to disable Download on a particular folder such that no document on that folder is allowed to be downloaded. Could you elaborate on your answer.
03-08-2018 01:39 AM
Hi Sakshi,
Evaluators can come in handy for your use case. You need a way to identify folders for which you want to disable the action.
You can do that by using folder names as well, but I would suggest go via a aspect route. Add an aspect to the folder you want to disable the action and have a check in the evaluator.
Hope this is helpful
03-09-2018 05:30 PM
03-10-2018 08:35 AM
You can create aspect as below
Creating new custom types and aspects | Alfresco Documentation
Apply this aspect to the folders you want to restrict download action.
Use predefined evaluator to check aspect.
03-12-2018 01:40 PM
Hi ashwin.mor _
Thank you for the reply. I created a custom aspect type by:
03-14-2018 03:05 PM
03-14-2018 10:10 PM
Hi Sakshi,
Look at
Use predefined evaluator to check aspect.
Predefined evaluators | Alfresco Documentation
We now need to add a condition in share document library XML file to use the new aspect.
02-22-2018 11:59 PM
Hi , Sakshi Kochhar
Add the following entry in Alfresco_Home/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml file.
< !-- Document Library Actions config section -- >
< config evaluator="string-compare" condition="DocLibActions" >
< !--
Action definitions
-- >
< actions >
< !-- Download document -- >
< action id="document-download" type="link" label="actions.document.download" >
< param name="href" >{downloadUrl}</ param >
< !--
Evaluator to Disable Download action when document is locked by a user
-- >
< evaluator negate="true" >"DOWNLOAD_CUSTOM_EVALUATOR"</ evaluator >
</ action >
</ actions >
</ config >
refer this documentation Creating a custom evaluator | Alfresco Documentation to create custom evaluator .
Explore our Alfresco products with the links below. Use labels to filter content by product module.