Inside share-config-custom.xml, you need to use predefined elevator for disabling actions.You can use below evaluator for permanently disable the action.
evaluator.doclib.action.disableAction
Example : For disabling download actions
<config evaluator="string-compare" condition="DocLibActions">
<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.disableAction</evaluator>
</action></config>
For more details regarding predefined evaluators.
Document Library Predefined Evaluators
Refer below link for creating custom evaluator
oh thanks ! I do it as you say, but it doesn't work
<!-- 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.disableAction</evaluator>
</action>
Is it the wrong value of label?
Because of the screen shot not being in my language, I am not able to identify the action id, you need to figure on your own.Above code should be in proper place and it will only disable the download action.
the button called "View in a browser" ,But I don't know where to find the right lable value.
<action id="document-view-content" type="link" label="actions.document.view">
<param name="href">{viewUrl}</param>
<evaluator>evaluator.doclib.action.disableAction</action>
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.