Open Closed

Override module menu item #5331


User avatar
0
joe@tronactive.com created
  • ABP Framework version: v7.2.2
  • UI type: Blazor
  • DB provider: EF Core
  • **Tiered (MVC) : yes

I just added the File Management Module and I wanted to override the menu of the one that is auto added so I can get rid of the feature enabled requirement and change things like the icon and order. But when I add the below menu code, it just adds a second menu item instead of overriding the one that gets added automatically through the module. How can I override the menu?

    //File Management
    context.Menu.AddItem(
        new ApplicationMenuItem(FileManagementMenuNames.GroupName,
                displayName: "File Management",
                url: "~/file-management",
    icon: "fa-duotone fa-folder-open",
    order: 6,
    requiredPermissionName: Cure8Permissions.AdminApi));

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

    Hi,

    You can check the document: https://docs.abp.io/en/abp/latest/UI/Blazor/Navigation-Menu#manipulating-the-existing-menu-items

  • User Avatar
    0
    joe@tronactive.com created

    Thank you

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 01, 2025, 08:37