It is possible to hide or disable all download options(download as zip, download from preview,repository list,download from document action,from view in browser action,search) for specific role? Thank you
Solved! Go to Solution.
You need to override multi-action and comment out or remove the below line from multi-select
<action type="action-link" id="onActionDownload" icon="document-download" label="menu.selected-items.download" />
this will remove and you will not see Download as Zip option in multi select drop-down.
<config evaluator="string-compare" condition="DocumentLibrary" replace="true">
<multi-select>
<action type="action-link" id="onActionDownload" icon="document-download" label="menu.selected-items.download" />
<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="onActionAssignWorkflow" asset="document" icon="document-assign-workflow" label="menu.selected-items.assign-workflow"/>
<action type="action-link" id="onActionDelete" icon="document-delete" permission="Delete" label="menu.selected-items.delete" notAspect="hwf:hybridWorkflow,sys:undeletable,smf:smartFolder" />
<action type="action-link" id="onActionCloudSync" asset="document" icon="document-cloud-sync" permission="CreateChildren" label="menu.selected-items.cloudSync" notAspect="sync:syncSetMemberNode,smf:smartFolder,smf:smartFolderChild" syncMode="ON_PREMISE" />
<action type="action-link" id="onActionCloudSyncRequest" icon="document-request-sync" label="menu.selected-items.cloudRequestSync" hasAspect="sync:syncSetMemberNode" notAspect="smf:smartFolder,smf:smartFolderChild" syncMode="ON_PREMISE" />
</multi-select>
</config>
Note : do not forget to add replace="true" in config tag, Create a new config file(one context file where this config file will referenced) and override all the configuration that you want to change/update, please don't update make changes alfresco original config file.
Similarly you have to use DocLibActions to remove download action from document library with replace true.
<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>
<param name="target">_blank</param>
<evaluator>evaluator.doclib.action.downloadBrowser</evaluator>
<evaluator>evaluator.doclib.action.hasContent</evaluator>
</action>
You can find all the information in share-documentlibrary-config.xml inside tomcat\webapps\share\WEB-INF\classes\alfresco
-D
Hi
Following may help you to solve your query How to Disabling Preview Download in Alfresco 5.2
Thanks
Yash Patel
Thank you, these answers help me. But i still want to hide "download as zip" when i select more items. And for specific user role
You need to override multi-action and comment out or remove the below line from multi-select
<action type="action-link" id="onActionDownload" icon="document-download" label="menu.selected-items.download" />
this will remove and you will not see Download as Zip option in multi select drop-down.
<config evaluator="string-compare" condition="DocumentLibrary" replace="true">
<multi-select>
<action type="action-link" id="onActionDownload" icon="document-download" label="menu.selected-items.download" />
<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="onActionAssignWorkflow" asset="document" icon="document-assign-workflow" label="menu.selected-items.assign-workflow"/>
<action type="action-link" id="onActionDelete" icon="document-delete" permission="Delete" label="menu.selected-items.delete" notAspect="hwf:hybridWorkflow,sys:undeletable,smf:smartFolder" />
<action type="action-link" id="onActionCloudSync" asset="document" icon="document-cloud-sync" permission="CreateChildren" label="menu.selected-items.cloudSync" notAspect="sync:syncSetMemberNode,smf:smartFolder,smf:smartFolderChild" syncMode="ON_PREMISE" />
<action type="action-link" id="onActionCloudSyncRequest" icon="document-request-sync" label="menu.selected-items.cloudRequestSync" hasAspect="sync:syncSetMemberNode" notAspect="smf:smartFolder,smf:smartFolderChild" syncMode="ON_PREMISE" />
</multi-select>
</config>
Note : do not forget to add replace="true" in config tag, Create a new config file(one context file where this config file will referenced) and override all the configuration that you want to change/update, please don't update make changes alfresco original config file.
Similarly you have to use DocLibActions to remove download action from document library with replace true.
<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>
<param name="target">_blank</param>
<evaluator>evaluator.doclib.action.downloadBrowser</evaluator>
<evaluator>evaluator.doclib.action.hasContent</evaluator>
</action>
You can find all the information in share-documentlibrary-config.xml inside tomcat\webapps\share\WEB-INF\classes\alfresco
-D
Hello All,
I am also have a similar requirement.
I have installed Alfresco Community Edition 5.2 version. I have to customize the menu to hide 'download' the document option from users who logged in as a Consumer.
I have tried the below solutions but didn't work for download.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.