Hi,
i want to disable a standard action in the document library.
I've got a custom-doclib-extension File in my amp, where i want to hide the standard action with the id "document-edit-offline".
I added the disableAction-Evaluator to the action, but nothing happens. The action is still shown.
This is the configuration:
<module>
<id>Document Libarary Actions - My custom view</id>
<version>1.0</version>
<auto-deploy>true</auto-deploy>
<configurations>
<config evaluator="string-compare" condition="DocLibActions">
<actions>
<!-- Edit offline -->
<action id="document-edit-offline" type="javascript" label="actions.document.edit-offline">
<evaluator>evaluator.doclib.action.disableAction</evaluator>
</action>
</actions>
</config>
</configurations>
</module>
thanks for your help!
It looks like you are combining share config with a module extension. I'm not sure that is possible. If it is, cool.
Another way to do it is to move that config block to your share-config-custom.xml file that's in your AMP.
In that case, I believe you should do what said, putting your configuration inside the share-config-custom.xml file.
If you want to use the extension module, you should/could be adding condition to define when your custom code is applied, but in that case, I believe you will have to add the replace option.
But remember that if you use replace, you will have to copy the full configuration section inside your config file.
Well this old dog learned a new trick.
I put it in my share-config-custom.xml in my amp and now it works! thanks!
I use the the share config in the extension module for in a similar case. I have two amps with different form configs for the same custom content type and in that case it works very well. That's why i was wondering that it didn't work for the action config.
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.