cancel
Showing results for 
Search instead for 
Did you mean: 
kreycraft
Sisense Team Member
Sisense Team Member

Using the Metadata plugin, themes, and languages to limit duplication of dashboards 

Do you end up with many copies of the same dashboard because your different users want to see their dashboards using their color schemes and their naming conventions?  Plus, does it need to support multiple languages?

Below is an example that uses the metadata plugin, themes, and language preferences to take 6 dashboards down to 1.

Scenario

I have a standard dashboard that all of my customers will use;  It will be run by both English and French users.  I have 2 large customers (Coke and Pepsi - only used for illustration purposes and not real customers) who want to view that same dashboard but want it to use their terminology for both their English and French users and their color scheme.   

Using no configuration within Sisense this would require 6 different dashboards to be created and maintained.  Below are the steps to create and maintain a single dashboard that has all the functionality of the above.

The Setup

1. Metadata plugin
The first step is to use the metadata plugin but we’ve modified it to separate out the translation into separate files from the logic (version used attached).  Take the attached metadata.zip file, add it to your plugins folder, and enable the plugin.

Files:

kreycraft_0-1694192230010.png

kreycraft_1-1694192258274.png

Enabled plugin

kreycraft_2-1694192299517.png

 

For the plugin, the logic to pick which language file is in the main.6.js file.  In the below example, if the user is in the Coke user group and their preferred language is French then use the cokeFrench translation (which is in the file CokeFrench.js). 

 

kreycraft_3-1694192335112.png

 

The terminology to use is in the language file itself (i.e. CokeFrench.js).  For example, the dashboard called “Test Branding” should be displayed as “Vraie magie” for users in the Coke group whose preferred language is French. 

 

kreycraft_4-1694192370372.png

 

2. User’s preferred language

All users should have their preferred language set within Sisense which will allow the plugin to choose which language to show.  

3. Themes

Themes allow the same dashboard to have a different look and feel for different users.  These are configured within the Admin panel of Sisense. 

Here we have a default theme along with new themes for Pepsi and Coke.


kreycraft_5-1694192651840.png
Sample of Pepsi and Coke themes with custom fonts, different color schemes, etc.

kreycraft_6-1694192720081.png

 

kreycraft_7-1694192720057.png

These themes will then be applied to user groups which will allow the same dashboard to have a different look and feel for each user group.

jcordell_0-1694451326250.png

Results

The initial dashboard is shown in English below with all the terminology defined and changed by the metadata plugin marked with a circle.  

Regular user in English

kreycraft_10-1694192840925.png

Regular users using the French translations
jcordell_1-1694451369333.png

Pepsi views in English and French using their dashboard name, widget title, dimension names and formula names. 
jcordell_2-1694451398897.png

jcordell_3-1694451422973.png

Coke views in English and French using their dashboard name, widget title, dimension names and formula names.
jcordell_4-1694451463303.png
jcordell_5-1694451480049.png
Success!  We have 1 dashboard to maintain and it can be viewed in 6 different ways.  

How you can test yourself

To test the above for yourself you will need to have the following setup:

  • Test Branding dashboard (TestBranding.txt - rename to TestBranding.dash to import)
  • Modified metadata plugin files (metadata.zip) installed and enabled
  • Sample Healthcare data model which is deployed with Sisense
  • Coke and Pepsi user groups with users in each.  You don’t have to have an English and French user as you can just modify the user’s language in the profile to see if the translation is working properly.
  • Coke and Pepsi themes if you want to have a different look and feel for each user group
Comments
kreycraft
Sisense Team Member
Sisense Team Member

Another good example of using the metadata plugin is explained in this other KB article.  

Version history
Last update:
‎09-13-2023 11:10 AM
Updated by:
Contributors
Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Developers Group:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

The Legal Stuff

Have a question about the Sisense Community?

Email [email protected]

Share this page: