Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

White labelling based on Tenant #347

Open
Stephen250 opened this issue Jun 10, 2020 · 8 comments
Open

White labelling based on Tenant #347

Stephen250 opened this issue Jun 10, 2020 · 8 comments

Comments

@Stephen250
Copy link

Hello,

I checked out the Development branch yesterday and am really stoked about what I have seen regarding the Multi-tenancy.

I noticed that the Email Configuration is now tenant based and was wondering is there any plan todo tenant based white labelling (theme)?

Ex: I have three tenants:

  • tenant A I want to show blue theme with tenant A logo
  • tenant B I want to show red theme with tenant B logo
  • tenant C I want to show green theme with tenant C logo
@GioviQ
Copy link
Collaborator

GioviQ commented Jun 10, 2020

One theme per tenant is one of the goals of multitenancy.

Can you contribute with different themes? Basically you should have to create different versions of https://github.com/enkodellc/blazorboilerplate/tree/development/src/Shared/Modules/BlazorBoilerplate.Theme.Material.

@Stephen250
Copy link
Author

I can certainly take a look, on the approach that you recommended.

Would you have to duplicate the BB.Theme.Material or could you harness the TenantSettings table?

So when the application loads it detects the tenant and pulls the appropriate values:

  • tenant1, logo, logo_name
  • tenant1, css, css_name

Within the BB.Theme.Material, you would only have to add the logos and css sheets per tenant.

Then once the application loads, it will detect the tenant, load the specific logo and css based on the key/value pair.

@GioviQ
Copy link
Collaborator

GioviQ commented Jun 10, 2020

There is just a theme setting. https://github.com/enkodellc/blazorboilerplate/blob/development/src/Shared/BlazorBoilerplate.Shared/Dto/Db/SettingKey.cs

I think to save there the dll theme name, but I have to implement dynamic loading. Do you know oqtane framework?

@Stephen250
Copy link
Author

No, I am not too familiar with Oqtane Framework....

Within MatBlazer they have this: https://www.matblazor.com/Themes

Based on that if you supplied a color code to the theme key within TenantSettings, that would in theory cover the basic, color scheme.

If we need to save more then that i.e CSS I will need to dig into that a little bit.

@GioviQ
Copy link
Collaborator

GioviQ commented Jun 10, 2020

I am waiting to become familiar with Oqtane to implement theme loading.

@Stephen250
Copy link
Author

Okay, I have downloaded and played around with Oqtane Framework.

Can I get an understanding of what your goal is with this?

Are you planning on rewriting BB to use this framework, or just uses bits and pieces from it?

@GioviQ
Copy link
Collaborator

GioviQ commented Jun 10, 2020

No rewriting.
I like the part where you can download a custom theme from nuget.

@justSteve
Copy link
Contributor

@Stephen250 and @GioviQ -- please accept this as a gentle nudge to revisit this task. I'm beginning a deep dive into the tenant subsystem and would love to see how this feature gets implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants