Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Setting a global theme for all tenants #10416


User avatar
0
KarakTheWise created

Version 9.2.0 Angululr .NET Core

Greetings,

As the title states, I would like to globally set the theme and the application logo for every tenant to be the same. We're not wanting to allow the tenants to change the theme but rather have a uniform look for our application. What would be the best way to go about doing this?

Thanks much!


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    When you set the theme settings on Visual Settings page as a Host user, it will be available for all tenants. If you don't tenants to change the UI, it will be better to hide Theme settings menu item on the User Menu for tenant users. You can also convert permission of the Visual Settings page to a Host specific setting, so Tenant users will not be able to see this page as well.

  • User Avatar
    0
    KarakTheWise created

    Thank you for the reply! I had previously set the permissions so that the tenants can't change or have access to the themes. The larger part that I don't think I explained well enough is how do I set a single theme to be the main or default theme for every tenant? I'm not sure at the moment which theme I've selected for the theme I wish to use for the application. But for this example we'll say I set it to theme 3. So now I want to be sure all tenants will use theme 3 when new tenanats are created. I hope that makes sense.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @KarakTheWise

    If you set "theme 3" as the default theme on Host side, then all new tenants will use this setting. AspNet Zero's setting system works like this. You can check https://aspnetboilerplate.com/Pages/Documents/Setting-Management#setting-scope.

    So, you just need to be sure that tenants admin users and tenant users shouldn't be able to change tenant settings.

  • User Avatar
    0
    KarakTheWise created

    Excellent! I'll take a look at that. I knew there had to a way to accomplish it.

  • User Avatar
    0
    KarakTheWise created

    That took care of it. Thanks so much!