Multiple Navbars for Apps

0
Hello, TL;DR: We are trying to combine two apps that have two different navbars. What we want is a homepage that the user chooses which group they are in and then from that point forward, they use that group's navbar. Has anyone tried to do this in Mendix?We have a consultant app, consultant.company.com, and an IT app, it.company.com. We want to combine the two and do something like company.com/consultant and company.com/it. The consultant navbar looks like Reports | Projects | Stories | Goals | Administrator, and the IT navbar looks like Asset Types | Carriers | Companies | Users | Asset Location | Incident Manager | Audits. Both apps use the in-app Mendix navigation, but we can't have both. Any ideas?
asked
1 answers
0

You can definitely do this in Mendix.


A simpler way is:

  • Create two separate layouts, like ConsultantLayout and ITLayout, each with its own navbar.
  • On the homepage, let the user pick which group they belong to (Consultant / IT).
  • Store that choice (session or a user attribute works fine).
  • Then just redirect them to pages that use the matching layout.


So instead of forcing 2 navbars into 1, you basically route users to the right layout.


If this resolves your issue, kindly mark it as accepted.


answered