cancel
Showing results for 
Search instead for 
Did you mean: 

Don't display user menu.

iry_
Champ on-the-rise
Champ on-the-rise

I would turn off the user menu (the menu with the icon, the name and the drop down list with logout). How can I do that?

1 ACCEPTED ANSWER

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

To remove just the drop down list, you can only remove actions listed. Through Nuxeo Studio add XML Fragment (in Advanced) and copy that:

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

But if you want also remove the username part you will need to override this resources:

nuxeo.war/incl/nuxeo_header.xhtml

by:

<div xmlns:ui="http://java.sun.com/jsf/facelets">
  <ui:decorate template="/incl/nuxeo_header_template.xhtml">
    <ui:define name="header_user_menu_actions">
    ...Put here what you want that will override the fragment...
    </ui:define>
  </ui:decorate>
</div>

Anyway, be careful, if you remove this part, your user can't logout. So you will need to create your own logout action somewhere...

View answer in original post

1 REPLY 1

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

To remove just the drop down list, you can only remove actions listed. Through Nuxeo Studio add XML Fragment (in Advanced) and copy that:

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

But if you want also remove the username part you will need to override this resources:

nuxeo.war/incl/nuxeo_header.xhtml

by:

<div xmlns:ui="http://java.sun.com/jsf/facelets">
  <ui:decorate template="/incl/nuxeo_header_template.xhtml">
    <ui:define name="header_user_menu_actions">
    ...Put here what you want that will override the fragment...
    </ui:define>
  </ui:decorate>
</div>

Anyway, be careful, if you remove this part, your user can't logout. So you will need to create your own logout action somewhere...

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.