Studio

HOWTO: Override Existing Contributions

Updated: March 18, 2024

This tutorial provides steps to override Web UI Default contributions with Nuxeo Studio.

Learn how to customize the User Settings Menu by:

  • Restricting access to a contribution in a menu to a specific group of users
  • Copying a contribution from the Administration menu in the User Settings menu
  • Configuring the order of contributions in a menu

User settings menu
User settings menu

Restricting Access to a Specific Group

In this section, we will restrict access to the authorized apps menu only to Administrators.

Edit contribution
Edit contribution

  1. In Studio Designer, go to Drawer > Main Menu Pages.
  2. Hover over authorizedAppsUserPage and click Edit.
  3. In Activation Filter section, click DEFINE FILTERS.
  4. In User has membership of, enter administrators.
  5. Save.

Copying a Contribution

In this section, we want to give access to a contribution that is by default available in the Administration menu, the Analytics page in the User Settings menu.

Copy contribution analytics
Copy contribution analytics

  1. In Studio Designer, go to Drawer > Main Menu Pages.
  2. Hover over adminAnalyticsPage and click Copy.
  3. In Identity > Name, edit the name to userAnalyticsPage.
  4. In User will access it from, select User Menu.
  5. In Activation Filter, click DEFINE FILTERS.
  6. In Custom expression, remove user.isAdministrator to enable this contribution to be displayed to all users.
  7. Save.

Configuration userAnalyticsPage
Configuration userAnalyticsPage

Disabling a Contribution

In this section, we will disable the Theme page so that the user cannot select another theme than the default one.

Disable contribution themes
Disable contribution themes

  1. In Studio Designer, go to Drawer > Main Menu Pages.
  2. Hover over themesUserMenuItem and click on the toggle button.
  3. Save.

Configuring the Order of Contributions

In this section, we will reorder the contributions of the User Settings menu to showcase the pages we just configured.

  1. In Studio Designer, go to Drawer > Main Menu Pages.
  2. Hover over userAnalyticsPage and click Edit.
  3. In Order, enter 3.
  4. Save your changes and return to Main Menu Pages.
  5. Hover over authorizedAppsUserPage and click Edit.
  6. In Order, enter 4.
  7. Save and deploy to your instance.

You should have this result.

For administrator users For non-admistrator users
Customized menu
Customized menu
Customized menu members
Customized menu members