03-15-2017 11:59 AM
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!
03-17-2017 11:00 AM
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.
03-19-2017 04:12 PM
03-19-2017 06:50 PM
Well this old dog learned a new trick.
03-19-2017 04:15 PM
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.
03-20-2017 08:27 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.