Base solution for your next web application
BLACK FRIDAY
From Nov 21
To Dec 1
XXDAYS : XXHRS : XXMIN : XXSEC
SAVE UP TO$3K
Also valid for the
existing customers!
Open Closed

Different menu per tenant? #879


0
bubba created

I'm just getting started using Boilerplate (MPA) and my aim is to build a multi tenant system where each tenant can create their own pages. I noticed however that the menu is created at startup (in other words, it's "hard coded" and not dynamic :| ) and I cannot figure out how to change it to reflect the different tenants pages.

The only solution I can think of is hiding the built in menu completely and render my own menu, but I would like to know if it is possible to utilize the built in one? :?:

Any help, hints or advice will be helpful.


2 Answer(s)
  • 0
    eu11111 created

    When you setup your partial view for the top bar (for example), you get a object of type MainMenu that you could manipulate at your own will. Otherwise, you could edit the setnavigation method from NavigationProvider to include some extra logic.

    You just have to Add Items at your own will!

  • 0
    hikalkan created
    Support Team

    Current menu system is not such dynamic. You have 2 options:

    • Completely write your custom menu implementation, do not use ABP's menu.
    • Use ABP's menu for static menu items and store dynamic pages for tenants in database. Then change menu render code to use both.