Open Closed

Menu parent #1597


User avatar
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:"

2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    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);
    
  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11