Open Closed

Menu parent #1597


0
samuelhelou created

Hi, I created an application using ABP Commercial

I'm starting now with the ABP and I have some childish doubts, I apologize for the ignorance.

I need to group the menus similar to the SAAS, Administration menu, like parent / Tree!

Menu.png

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v4.3.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

1 Answer(s)
  • 0
    liangshiwei created
    Support Team

    Hi,

    You can check this: https://docs.abp.io/en/abp/latest/UI/AspNetCore/Navigation-Menu#adding-menu-items

    Same with:

    var parent = new ApplicationMenuItem("MyProject.Crm", l["Menu:CRM"]);
    
    parent.AddItem(new ApplicationMenuItem(
            name: "MyProject.Crm.Customers", 
            displayName: l["Menu:Customers"], 
            url: "/crm/customers")
    );
    
    parent.AddItem(new ApplicationMenuItem(
            name: "MyProject.Crm.Orders", 
            displayName: l["Menu:Orders"], 
            url: "/crm/orders")
    );
    
    context.Menu.AddItem(parent);