Disable/Restrict Download As Zip

cancel
Showing results for 
Search instead for 
Did you mean: 
aummer
Member II

Disable/Restrict Download As Zip

Hi All,
How to disable download as zip folder library and Document Detail Download button action on alfresco  Community - 5.1.0 edition?

NB
2 Replies
art99trash
Active Member II

Re: Disable/Restrict Download As Zip

If you add this section to you share-config-custom.xml, it should remove
the "Download as Zip" actions for folders and documents.


  <config evaluator="string-compare" condition="DocLibActions">
    <actions>
      <action id="folder-download" type="javascript" label="actions.folder.download" icon="document-download">
   <param name="function">onActionFolderDownload</param>
   <evaluator>evaluator.doclib.action.disableAction</evaluator >
      </action>
      <action id="document-download" type="link" label="actions.document.download">
   <param name="href">{downloadUrl}</param>
        <evaluator>evaluator.doclib.action.disableAction</evaluator>
      </action>
    </actions>
  </config>


You might need to use a custom evaluator if you only want to remove the download
action in certain situations.

I hope this helps.
nilesh
Member II

Re: Disable/Restrict Download As Zip

same requirement,  Tried but no luck,   might be version difference 'm using 5.2.0 

any comments please