AnsweredAssumed Answered

Restrict Folder Download as Zip

Question asked by hoomanv on Sep 8, 2013

Add the following to share-config-custom.xml

<!--
Remove 'Download as Zip' from DocLib actions.
-->
<config evaluator="string-compare" condition="DocLibActions">
<actions>
    <action id="folder-download">
      <evaluator>evaluator.doclib.action.disableAction</evaluator>
    </action>
  </actions>
</config>

<!--
Remove 'Download as Zip' from the multi-select menu.
Copy multi-select actions from tomcat/webapps/share/WEB-INF/classes/alfresco/share-documentlibrary-config.xml
Exclude the one named 'onActionDownload'.
-->
<config evaluator="string-compare" condition="DocumentLibrary" replace="true">
  <multi-select>
    <action type="action-link" id="onActionCopyTo" icon="document-copy-to" label="menu.selected-items.copy" notAspect="smf:smartFolder,smf:smartFolderChild"/>
    <action type="action-link" id="onActionMoveTo" icon="document-move-to" permission="Delete" label="menu.selected-items.move" notAspect="smf:smartFolder,smf:smartFolderChild"/>
    <action type="action-link" id="onActionDelete" icon="document-delete" permission="Delete" label="menu.selected-items.delete" notAspect="hwf:hybridWorkflow,sys:undeletable,smf:smartFolder" />
  </multi-select>
</config>

Outcomes