Portal colors from wedia-config
Since 2023.3 we’ve introduced a server side style managment. This means we’ve added a feature in wedia-config. This feature allows us to switch portal colors whithout rebuilding and re-delivering.
To enable this feature we have to :
Add a new parameter inside the used wediaportalrc configuration and set it to true =>
"useServerStyles": true,
"environments": {
"starter-kit": {
"": {
"useServerStyles": true,
"useServerConfigResolution": true,
"deploy_server": "https://starter-kit.wedia-group.com",
"vue_app_config_path": "portal",
"appConfigs": {
"portal": "starter-kit",
"wediaConfig": "__wedia_config",
"portal@picker": "starter-kit@$starter-kit-picker",
"portal@picker@office": "starter-kit@$starter-kit-picker@office",
"portal@picker@office@outlook": "starter-kit@$starter-kit-picker@office@outlook",
"_postProcessors": [
[
"",
"starter-kit-mobile"
]
]
}
},
"development": {
"vue_app_api_path": "https://starter-kit.wedia-group.com"
}
}
}
set jspMode to true
The above-mentioned conditions are also used to enable the favicon switch. The favicon changes can be done from wedia-config “Appearance” / “Logos & Colors”, but will only be effective if the conditions are fulfilled.
Then after editing colors from wedia-config under “Appearance” / “Logos & Colors” menu, the new chosen colors will be applied to portal and the main color will also be used in the emails generated by the app.
The colors switch is allowed by endpoints added with PACKAGED_Appearance_Config. Therefore to use this new feature the plugin must be activated