cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Menu depends on document aspects

fido
Champ in-the-making
Champ in-the-making
I have defined a couple of custom actions and was able to add them as part of the menu items.  However I want to be selective on the actions available to the user depends on the properties of the document.  For example:
I would add and define custom aspects to the document and if a particular aspect is set, "Action1" will show as one of the menu item, otherwise "Action2" and "Action3" will show.
Is this possible?

Thanks in advance.
1 REPLY 1

gavinc
Champ in-the-making
Champ in-the-making
Yes, this is possible using an action evaluator.

They are simple Java classes that you configure on the action definition. Have a look in the org.alfresco.web.action.evaluator package for examples.