12-07-2018 04:13 AM
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
12-07-2018 06:56 AM
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
12-07-2018 04:40 AM
12-07-2018 04:42 AM
Hi
Following may help you to solve your query How to Disabling Preview Download in Alfresco 5.2
Thanks
Yash Patel
12-07-2018 06:06 AM
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
12-07-2018 06:56 AM
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
01-21-2019 05:58 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.