How to hide user "home" menu tabs ? (5.6 and +)

Hi,

I have to hide user-centric tabs in the “home” menu :

  • Authorized Applications
  • Activity Stream
  • Mini Messages

I tried this contrib :

<?xml version="1.0" encoding="UTF-8"?>
<component name="org.mysite.ecm.action.config">
     <require>org.nuxeo.ecm.user.center.oauth.actions</require>
     <require>org.nuxeo.ecm.user.center.actions</require>

     <extension target="org.nuxeo.ecm.platform.actions.ActionService" point="actions">
          <!-- Hide tabs from "Home" user-centric menu :
               - Authorized Applications,
               - Activity Stream
               - Mini Messages
          -->
          <action id="AuthorizedApplication" enabled="false" />
          <action id="UserActivityStream" enabled="false"/>
          <action id="UserMiniMessages" enabled="false"/>
     </extension>
</component>

As a result, the “Authorized Applications” tab no longer appears ; OK.
Other actions (“Activity Stream” and “Mini Messages“) are no longer available but the corresponding tabs still appear ; NOK.

I only want to hide the actions ((“Activity Stream” and “Mini Messages“) in the user menu, while keeping them accessible via a dashboard gadget. How do I do this?

Thanks for your help,
Patrice

0 votes

0 answers

1076 views

ANSWER