I don't want my users to edit documents in google docs but I can't just remove google docs integration because it breaks some documents that already have been edited this way. So I want to hide the menu item from edit document menu, I have found this example here
<actions>
<action id="view-in-explorer">
<evaluator>evaluator.doclib.action.disableAction</evaluator>
</action>
<!-- View document in browser -->
<action id="document-view-content" type="link" label="actions.document.view">
<evaluator>evaluator.doclib.action.disableAction</evaluator>
</action>
</actions>
but I'm not sure how to adjust it for google docs, what would be the action id, type and label? Where can I find them? Does evaluater line stay the same?
You can find Google Docs actions ids at https://github.com/Alfresco/google-docs/blob/master/Google%20Docs%20Share/src/main/resources/META-IN...
Evaluator line to disable action is the same: evaluator.doclib.action.disableAction
Thanks for your reply! I have added following section to my share-config-custom.xml and restarted alfresco but menu items are still there.(( What am I missing?
<actions>
<action id="google-docs-edit-action-link">
<evaluator>evaluator.doclib.action.disableAction</evaluator>
</action>
<action id="google-docs-edit-action-link" type="javascript" icon="google-edit-flat" label="googledocs.actions.edit">
<evaluator>evaluator.doclib.action.disableAction</evaluator>
</action>
<action id="google-docs-resume-action-link">
<evaluator>evaluator.doclib.action.disableAction</evaluator>
</action>
<action id="google-docs-resume-action-link" type="javascript" icon="google-edit-flat" label="googledocs.actions.resume">
<evaluator>evaluator.doclib.action.disableAction</evaluator>
</action>
<action id="google-docs-cancel-action-link">
<evaluator>evaluator.doclib.action.disableAction</evaluator>
</action>
<action id="google-docs-cancel-action-link" type="javascript" icon="document-cancel-editing" label="googledocs.actions.cancel">
<evaluator>evaluator.doclib.action.disableAction</evaluator>
</action>
<action id="google-docs-checkin-action-link">
<evaluator>evaluator.doclib.action.disableAction</evaluator>
</action>
<action id="google-docs-checkin-action-link" type="javascript" icon="document-upload-new-version" label="googledocs.actions.checkin">
</actions>
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.