What is the recommended/supported way to add items to the "Administration" menu?

There are quite a few things that Jmix places in an “Application” menu - the biggest of these is “Users” - that more properly belong under the “Administration” menu. There are also things specific to our application that belong there as well.

The editors do not make this easy. For example dragging something to the Admin menu seems to work but then it just “magically” ends up back outside of it. The Admin menu doesn’t exist in the XML and trying to use insertBefore or ’nsertAfter to put things there sometimes/sort of works, but the editor behaves unpredictably. Many times, I will start typing insertBefore and the editor simply erases it… repeatedly. It flashes up with the quotes ready to put my value in but instantly deletes it.

Is this a Studio bug, or is there another, supported way to add things to the Admin menu?

2 Likes

The currently supported way of having control over the whole menu is to switch to “Single mode” (and retain the inherited items).

I’ve created an issue on improving the menu designer and loader for the composite mode: https://youtrack.jmix.io/issue/JST-3293/Improve-usability-of-menu-designer-in-composite-mode

1 Like

Thank you for the answer - how does one switch to single mode (and retain the items)?

Never mind - the documentation says to use application-properties to do it, but it is available from the designer. You should consider changing the documentation. :slight_smile: