Hi Fabio,
and welcome to the mailing list.   Very nice to hear you are enjoying using
the framework.

With respect to your question, you can use the @DomainServiceLayout#named
attribute [1] to place the menu items for different menu domain services
onto the same menu.  The @DomainServiceLayout#menuOrder then determines the
relative order of each set of menu items with respect to others.  The
framework automatically puts a menu separator between each set.

For example, in Estatio [2] we have a "Fixed Assets" menu that is built out
of three menu services:


@DomainService(
        nature = NatureOfService.VIEW_MENU_ONLY
)
@DomainServiceLayout(
        named = "Fixed Assets",
        menuBar = DomainServiceLayout.MenuBar.PRIMARY,
        menuOrder = "10.1")
public class PropertyMenu ... { ... }


and


@DomainService(
        nature = NatureOfService.VIEW_MENU_ONLY
)
@DomainServiceLayout(
        named = "Fixed Assets",
        menuBar = DomainServiceLayout.MenuBar.PRIMARY,
        menuOrder = "10.2"
)
public class UnitMenu ... { ... }

and


@DomainService(
        nature = NatureOfService.VIEW_MENU_ONLY
)
@DomainServiceLayout(
        named = "Fixed Assets",
        menuBar = DomainServiceLayout.MenuBar.PRIMARY,
        menuOrder = "10.3"
)
public class FixedAssetRegistrationMenu ... { ... }



HTH
Dan

[1] http://isis.apache.org/guides/rgant.html#_rgant-DomainServiceLayout
[2] http://github.com/estatio/estatio









On 11 June 2016 at 15:27, Fabio Purcino <[email protected]> wrote:

> Dear sirs,
>
> I'm new on Apache ISIS development. It`s really fantastic but i'm facing
> the following issue:
>
> I have 20 domains with one domain service for each one showing basic
> operations (List, Create and Find by Name).  Because of this I got three
> lines of top menu, a little bit messy.
>
> Is there any way to manage this responsively? Or by making multilevel menu,
> or by moving menu to a tree view in left site or by changing top menu
> dynamically?
>
> I've already tried @menuOrder 1 , @menuOrder 1.1 to see different levels
> but Isis only put my Actions under the same level.
>
> Thanks for your help and best regards,
>
> --
> ------------------------------------------------------------
> Fábio Purcino Aragão
>

Reply via email to