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));
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    Hi,

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    joe@tronactive.com created

    Thank you

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
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.8.0-preview. Updated on September 24, 2026, 12:09
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.