cancel
Showing results for 
Search instead for 
Did you mean: 

How do I manipulate the list of availiable actions

nuga
Champ in-the-making
Champ in-the-making
How do i manipulate the list of available actions.

What i want is that given content type Foo
i want an action Fooaction to be available on the "actions" menu that is associated with the foo content
1 REPLY 1

gavinc
Champ in-the-making
Champ in-the-making
Most actions for the client are defined in web-client-config-actions.xml. You can override these or add new ones in your web-client-config-custom.xml file.

You'll need to define an action with a custom evaluator. The evaluator gets given the Node representing the item being rendered in the client. You can then test the type of the node and decide whether to show the action.

Have a look in the org.alfresco.web.action.evaluator package for several examples.