AnsweredAssumed Answered

[SOLVED]How to Enable/Disable an action following conditions

Question asked by nicolasc92 on Oct 27, 2009
Latest reply on Sep 3, 2010 by ggol
Hello to everybody,

In following the Wiki page http://wiki.alfresco.com/wiki/Custom_Document_Library_Action, I have created a new action in Share (v3.2) for documents and it works well, I mean I have added the new action in <actionSet id="document"> only (in document.list.get.config.xml).

However I would like to disable/hide the action if the document isn't in a certain extension.
For the meantime I have set an alert in the javascript function (in documentlist-min.js) but I don't wish to display the action all the time.

If anybody knows how to make a filter (to display/hide an action) and which files are concerned thank you for you help .

Outcomes