cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove a default Contextual Action ?

Guian_
Confirmed Champ
Confirmed Champ

I've found a way to add contextual action in User action, by setting the category 'Contextual action' and manage its enablement properly. As explained here : http://doc.nuxeo.com/display/Studio/User+actions+categories

But I can't find where to remove some existing ones ( the 'like' button for example ) For default tabs, we can disable them in the document type with the "Default tabs filtering" panel.

Is there a "Default contextual action filtering" panel somewhere ?

1 ACCEPTED ANSWER

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

Hi,

This cannot be done in a friendly way with Studio right now, it's more focused on adding things than disabling default ones, but future improvements may handle that kind of use case.

The easiest to disable an action globally is to add an "XML extension", find what the id of the original action is (you can use the explorer for that, for instance have a look at contributions to the actions service, more specifically actions from the rating module).

Here is a sample conf to disable the "like" action (not tested):

<extension target="org.nuxeo.ecm.platform.actions.ActionService"
  point="actions">
  <action id="documentLike" enabled="false" />
</extension>

View answer in original post

2 REPLIES 2

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

Hi,

This cannot be done in a friendly way with Studio right now, it's more focused on adding things than disabling default ones, but future improvements may handle that kind of use case.

The easiest to disable an action globally is to add an "XML extension", find what the id of the original action is (you can use the explorer for that, for instance have a look at contributions to the actions service, more specifically actions from the rating module).

Here is a sample conf to disable the "like" action (not tested):

<extension target="org.nuxeo.ecm.platform.actions.ActionService"
  point="actions">
  <action id="documentLike" enabled="false" />
</extension>

It worked for the like button, I'll look for the ids of other action I need to remove. Thanks !

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.