As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hello guys,
I want to know how to disable the "Edit in Microsoft Office" option. This option shouldn't come when I opened any doc/docx files.
[It shouldn't connect or redirect to any other links when i clicked on this option. This is what I wanted].
Please help me out guys.
Thanks in advance,
Raghu
Hi,
"Edit in Mircrosoft Office" feature comes from 'alfresco.aos.module' amp.
If you do not want "Edit in Microsoft Office" option at all then you should uninstall
this amp.
Thanks,
Kalpesh
ContCentric
Also, you also may configure evaluator.doclib.action.disableAction for the commented action in DocLibActions section for share-config-custom.xml
Regarding uninstalling the amp, take into consideration that AOS involves more stuff, like ./vti_bin.war for example.
Regards.
--C.
I'm not able to remove the "Edit in Microsoft Office" option.. The other options are getting disabled If i remove the 'alfresco.aos.module' from amp.. share me more descriptively. I'm new to Alfresco.
Can you tell step-by-step.. i want to remove only that option.
Cristina MR Douglas C. R. Paes como eu posso fazer isso: evaluator.doclib.action.disableAction?
Boa tarde.
Você precisa fazer o mesmo que foi explicado aqui, https://community.alfresco.com/thread/213114-how-to-disable-download-document-action-on-alfresco-50d#comment-712656
A única diferença será o ID da ação, onde você deverá usar a da edição com o Office.
Like Douglas linked this is what you must do for disable the acion "Edit in Microsoft Office"
In the "/<JAVA_PROJECT_SHARE_AMP>/src/main/resources/META-INF/share-config-custom.xml" add this piece of code:
<config evaluator="string-compare" condition="DocLibActions"> <actions> <action id="document-edit-online-aos" type="link" label="actions.document.edit-online-aos"> <evaluator>evaluator.doclib.action.disableAction</evaluator> </action> </actions> </config>
where evaluator.doclib.action.disableAction is bean setted on the file of your java project "/<JAVA_PROJECT_SHARE_AMP>/src/main/resources/alfresco/web-extension/<MODULE_NAME>-slingshot-application-context.xml":
<bean id="evaluator.doclib.action.disableAction" class="it.abd.alfresco.evaluator.DisableActionEvaluator"> </bean>
and on the file java "/<JAVA_PROJECT_SHARE_AMP>/src/main/java/it/abd/alfresco/evaluator/DisableActionEvaluator.java" like these:
package it.abd.alfresco.evaluator;import org.alfresco.web.evaluator.BaseEvaluator;
public class DisableActionEvaluator extends BaseEvaluator { @Override public boolean evaluate(org.json.simple.JSONObject jsonObject) { return false; } }