It is possible to hide or disable all download options?

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

It is possible to hide or disable all download options?

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

5 Replies
krutik_jayswal
Senior Member II

Re: It is possible to hide or disable all download options?

Similar question has been asked refer below link for more details.

 

yash_patel_c2
Established Member

Re: It is possible to hide or disable all download options?

Hi

Following may help you to solve your query How to Disabling Preview Download in Alfresco 5.2

Thanks

Yash Patel

ContCentric

msalka
Member II

Re: It is possible to hide or disable all download options?

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

dharmendra_pan2
Member II

Re: It is possible to hide or disable all download options?

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

afsal
Member II

Re: It is possible to hide or disable all download options?

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.

https://community.alfresco.com/thread/230076-how-to-create-custom-action-disable-download-document-i...