abpframework / abp

Open Source Web Application Framework for ASP.NET Core. Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET and the ASP.NET Core platforms. Provides the fundamental infrastructure, production-ready startup templates, application modules, UI themes, tooling, guides and documentation.
https://abp.io
GNU Lesser General Public License v3.0
12.31k stars 3.32k forks source link

Add several Menu using internal services and models. #19662

Open pouyababaie opened 2 weeks ago

pouyababaie commented 2 weeks ago

Is there an existing issue for this?

Is your feature request related to a problem? Please describe the problem.

im trying to create a sidemenu beside the exsiting one , my layout demands a secondary sidemenu that i want it to use the same functionaliy of exsitsnig MainMenu , MenuProvider , and IMenuManager.

i created a sidemenucontributer for that matter but there was no documentation to manually use the new menu contributer instread of the main one.

i put an image to show my need better :

sorry beforehand for weak illustration

Screenshot 2024-04-30 123607

the red lines are the menu item i want to be added by the new menu contributer i alreadt created the layout and a customsidemenuComponent for it but i dont know how to add the new menuItem list to it

the customsidemenuComponent inherits MainHeader component from lepton Theme but it does not get a Menu parameter.

Describe the solution you'd like

if there would be a service that get the contributor and returned a list of menu item , it would ease the process a lot.

currently i was unable to find any suitable docs for this need.

i genuinely accepts any thoughts on this.

Thanks !

Additional context

No response