cancel
Showing results for 
Search instead for 
Did you mean: 

Hide edit document menu item.

baikal
Champ in-the-making
Champ in-the-making

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? 

2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager

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

Hyland Developer Evangelist

baikal
Champ in-the-making
Champ in-the-making

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>