01-11-2017 11:49 PM
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?
01-12-2017 01:17 AM
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
01-12-2017 01:56 AM
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>
Explore our Alfresco products with the links below. Use labels to filter content by product module.